Re: NSTreeController and NSOutlineView: How do I get to the outline view's item
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