• 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: NSTreeController and NSOutlineView: How do I get to the outline view's item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTreeController and NSOutlineView: How do I get to the outline view's item


  • Subject: Re: NSTreeController and NSOutlineView: How do I get to the outline view's item
  • From: Markus Spoettl <email@hidden>
  • Date: Wed, 16 Apr 2008 00:43:51 -0700

On Apr 16, 2008, at 12:18 AM, Quincey Morris wrote:
If you're doing this in the context of populating the data model (e.g. creating nodes when initializing a new document), you'd probably want to do it by brute force: create the model data, then examine suitable rows of the outline view (possibly all of them), expanding the ones that correspond to a model object that needs to be expanded. In your scenario, the outline view items are NSTreeNode objects provided by the tree controller, and the NSTreeNode's representedObject is your model object -- a TreeNode, I guess.


representedObject is what I couldn't find. Thanks very much once again!

Regards
Markus
--
__________________________________________
Markus Spoettl

_______________________________________________

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


References: 
 >NSTreeController and NSOutlineView: How do I get to the outline view's item (From: Markus Spoettl <email@hidden>)
 >Re: NSTreeController and NSOutlineView: How do I get to the outline view's item (From: Quincey Morris <email@hidden>)

  • Prev by Date: [ANN] ANSystemSoundWrapper - Cocoa wrapper for changing system volume
  • Next by Date: Re: NSURL and certificates
  • Previous by thread: Re: NSTreeController and NSOutlineView: How do I get to the outline view's item
  • Next by thread: CGBitmapRef and User Space Coordinates
  • Index(es):
    • Date
    • Thread