Re: Restoring selection to NSOutlineView
Re: Restoring selection to NSOutlineView
- Subject: Re: Restoring selection to NSOutlineView
- From: Rob Keniger <email@hidden>
- Date: Fri, 6 Feb 2009 11:13:54 +1000
On 06/02/2009, at 11:06 AM, Randall Meadows wrote:
So, it seems like I need to try to get the actual *object* pointed
to by the index path and see if there is a valid object there, but I
can't figure out how to do that, either from the NSOutlineView or
its backing NSTreeController.
This will give you the "real" object at a particular index path for an
NSTreeController instance:
[[[treeController arrangedObjects]
descendantNodeAtIndexPath:indexPath] representedObject];
--
Rob Keniger
_______________________________________________
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