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