Re: Converting to NSPersistentDocument
Re: Converting to NSPersistentDocument
- Subject: Re: Converting to NSPersistentDocument
- From: mmalc Crawford <email@hidden>
- Date: Thu, 19 Jun 2008 02:45:59 -0700
On Jun 19, 2008, at 2:38 AM, Steven Hamilton wrote:
What I don't understand is how to bind to the managedObjectContext.
As far as I can tell in each windows .nib file I set File's Owner to
be my subclassed WindowController. This doesn't contain the MOC so
therefore I can't bind to it. NSDocument has the MOC but that isn't
available in the list of bindable objects.
Do I have the design wrong here? Should I set my subclassed
windowcontrollers to be each nibs FilesOwner? How do I reach the
managedObjectContext?
[File's Owner].document.managedObjectContext
mmalc
_______________________________________________
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