Re: File's Owner, NSWindowController, KVO, bindings
Re: File's Owner, NSWindowController, KVO, bindings
- Subject: Re: File's Owner, NSWindowController, KVO, bindings
- From: "Sean McBride" <email@hidden>
- Date: Tue, 20 Feb 2007 16:47:31 -0500
- Organization: Rogue Research
>> If I change the File's Owner to be my NSWindowController subclass,
>> can I
>> bind the arraycontroller to 'document.managedObjectContext'?
>
>What happened when you tried it?
Sorry, I should have mentioned that I tried. It appears to work correctly.
>> To do so, NSWindowController's 'document' would need to be KVO
>> compliant, right?
>>
>Do you plan on changing the document?
No, I don't think so.
Basically, "Document-Based Applications Overview" recommends using an
NSWindowController as File's Owner (to separate the controller layer
into view-controller and model-controller) and I wanted to go that way,
but I'm worried it will mess up the Core Data/bindings parts. The doc
appears to pre-date Core Data.
So it's ok to bind against a key path (document.managedObjectContext)
when part of the path is not KVO compliant (document)?
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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