• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Race in Apple's NSTreeContoller/NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Race in Apple's NSTreeContoller/NSOutlineView
      • From: Jens Alfke <email@hidden>
References: 
 >Help debugging why NSOutlineView stops updating (From: Godfrey van der Linden <email@hidden>)
 >Race in Apple's NSTreeContoller/NSOutlineView (From: Godfrey van der Linden <email@hidden>)

  • Prev by Date: Re: How to hide the divider in a collapsed NSSplitView pane
  • Next by Date: Re: Bindings Concept Question
  • Previous by thread: Re: Race in Apple's NSTreeContoller/NSOutlineView
  • Next by thread: Re: Race in Apple's NSTreeContoller/NSOutlineView
  • Index(es):
    • Date
    • Thread