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

Binding the Array Controller to the Model

With the array controller still selected, switch to the bindings inspector (Binding the Array Controller to the Model). Find the Content Array binding in the list and expand it. Select File's Owner in the pop-up next to Bind to and check the box. Leave the Controller Key blank and enter employees for the Model Key Path (Figure 9.8). Cocoa programmers would say that they are binding the Content Array of the array controller to the employees array of File's Owner (which is an instance of Document).

Figure 9.8  Binding the array controller’s content array

This binding sets up the input of the array controller to be the employees ...

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