Re: Converting to NSPersistentDocument
Re: Converting to NSPersistentDocument
- Subject: Re: Converting to NSPersistentDocument
- From: Steven Hamilton <email@hidden>
- Date: Thu, 19 Jun 2008 19:54:52 +1000
You do rock sir!
Thanks a lot.
On 19/06/2008, at 7:45 PM, mmalc Crawford wrote:
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