April 2015
Intermediate to advanced
556 pages
17h 47m
English
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
With the array controller still selected, switch to the attributes inspector. Under the Object Controller heading, set Mode to Entity Name. Then set the