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. ...