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

Adding an Array Controller to the XIB

You are going to add an array controller to the XIB. That is, the array controller will be instantiated when the XIB is loaded. This may seem odd because so far you have only added views to XIBs. Doing so, however, will make your life much easier as you will need to make a number of configuration changes which would be tedious to perform in code. Drag an Array Controller from the object library and drop it onto Interface Builder’s canvas (Figure 9.6).

Figure 9.6  Adding an array controller to Document.xib

Adding an array controller to Document.xib

An icon for the Array Controller will appear at the top level in Interface Builder ...

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