On May 31, 2010, at 3:40 PM, Joanna Carter wrote:
Normally, I find it easier to write read-only, lazy instantiating, properties for the Persistent Store Coordinator, MOM and MOC, in the Controller., Then it is easy to bind any objects in the NIB, that require the MOC.
Yes, I agree. My File's Owner is a NSPersistentDocument subclass. The nib has an object controller and an array controller both of which are bound to the File's Owner managedObjectContext.
It would be unusual to have a MOC directly connected to a View. They are normally connected to array or object controllers in the controller.
The nib contains a custom view with custom programmatic bindings. The bindings need a reference to the moc.
--Richard _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com