Chapter 11. Working with Structured Data
Cocoa contains two view classes for displaying hierarchical data. We looked at NSOutlineView
briefly already. The other is NSBrowser
. These are used all over OS X, but most obviously in the Finder. If you want to display hierarchical data in your application, then these provide ready-made interfaces for doing so easily. We looked briefly at using an outline view in Chapter 9.
The outline view is a subclass of NSTableView
. This class displays two-dimensional data, indexed by row. A good example of this is iTunes, which uses a table view to display the music library. Each track is a row and the columns represent the various metadata fields associated with it, such as the name, duration, rating, and so on. ...
Get Cocoa® Programming Developer’s Handbook, Second Edition 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.