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

Configure the Array Controller

Open Document.xib. Delete the text field that says Your document contents here. Drag an array controller onto Interface Builder’s dock. The array controller will be using the document object’s NSManagedObjectContext to fetch and store data. Use the bindings inspector to bind the array controller’s managedObjectContext to File's Owner’s managedObjectContext (Figure 13.3).

Figure 13.3  Giving the array controller a managed object context

Giving the array controller a managed object context

With the array controller still selected, switch to the attributes inspector. Under the Object Controller heading, set Mode to Entity Name. Then set the

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