Table Views

Table views are extremely complex objects. There isn’t room enough in this book to list every method of the table view classes or to explain everything that can be done with table views. Instead, three examples are presented. The first example shows the basic setup of a table view and the simplest possible data source. The second example expands on the first by doing some custom formatting of the data displayed by the table view. The third and final example shows a complex data source that implements a master-detail interface.

NOTE

In a master-detailinterface, a table view (the master) or other complex data-display objects display several data records. Selecting a particular record in the master causes a detail area, made of many ...

Get Cocoa® Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.