Re: Managed Object Context Reference
Re: Managed Object Context Reference
- Subject: Re: Managed Object Context Reference
- From: Richard Somers <email@hidden>
- Date: Mon, 31 May 2010 23:28:06 -0600
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 (email@hidden)
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:
This email sent to email@hidden