O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Container View Controllers

Master/detail is a very common user interface idiom. The interface is split in two: a list of items to select from on the left (master) and a view for the selected item on the right (detail). You can see this in many apps. In Xcode the navigator is the master view and the editor is the detail view.

Common interface arrangements are an excellent opportunity for reusable software components, and Cocoa provides a container view controller, NSSplitViewController, to aid in building master/detail interfaces.

Container view controllers, themselves NSViewController subclasses, manage the display of a collection of child view controllers. How they display their children depends upon the nature of the specific ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required