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

Get Cocoa Programming for OS X: The Big Nerd Ranch Guide 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.