Re: Race in Apple's NSTreeContoller/NSOutlineView
Re: Race in Apple's NSTreeContoller/NSOutlineView
- Subject: Re: Race in Apple's NSTreeContoller/NSOutlineView
- From: Chris Hanson <email@hidden>
- Date: Sat, 21 Jun 2008 18:59:02 -0700
On Jun 19, 2008, at 7:49 PM, Godfrey van der Linden wrote:
The sub-xib bindings are through the NSViewControllers
representedObject, which gets set not at awakeFromNib time but later
when the subview is activated.
What do your bindings look like?
If you have an outline view managed by an NSTreeController in your
xib, I'd expect you to have (1) your outline view's column's "value"
bound through your NSTreeController's arrangedObjects; (2) your
NSTreeController's "contentObject", "contentArray", or "contentSet"
bound through your File's Owner's representedObject; (3) your
NSTreeController set to use entity mode; and (4) your
NSTreeController's managedObjectContext bound to something appropriate.
#3 & 4 above are optional if you don't rely on the NSTreeController to
instantiate your model objects.
Is this about how you have your bindings configured now, or are they
set up differently?
-- Chris
_______________________________________________
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