Re: get the selection in an NSOutlineView
Re: get the selection in an NSOutlineView
- Subject: Re: get the selection in an NSOutlineView
- From: Jens Alfke <email@hidden>
- Date: Wed, 9 Jun 2010 08:45:01 -0700
On Jun 8, 2010, at 9:40 PM, Graham Cox wrote:
> At the time you call -selectedRowIndexes, you should then extract the items corresponding to those indexes from your data model (e.g. using [NSArray objectsAtIndexes:]) before the user has a chance to change the arrangement.
Actually I just call -itemForRow: to convert each row index to an object. That way the code for that isn’t dependent on how my data source works.
—Jens_______________________________________________
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