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

NerdTabViewController

While NSTabView, and thus NSTabViewController, offers several visual styles, none of them resemble the style of Xcode’s tab views. Emulating that appearance will make a fine goal. The completed application is shown in Figure 31.1.

Figure 31.1  The completed NerdTabViewController in action

The completed NerdTabViewController in action

As with NSTabViewController, NerdTabViewController will display a button for each child view controller. The contents of the selected child view controller will appear below the buttons. To react to view controllers being added and removed from the controller you will override insertChildViewController(_:atIndex:) and ...

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