NSTableView, NSOutlineView, and NSBrowser Concepts

Cocoa’s Application Kit framework contains the NSView subclasses NSTableView, NSOutlineView, and NSBrowser. These views are designed to display large amounts of structured data and are usually laid out inside of an NSScrollView instance. For convenience, the instances on Interface Builder’s Cocoa-Data palette are already wrapped in a scroll view. Figure 18.1 shows where to find instances of each class on the Cocoa-Data palette in Interface Builder.

Figure 18.1. Interface Builder’s Cocoa-Data palette.

Developers new to Cocoa often struggle with these three classes. Typically, there are two key ...

Get Cocoa® Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.