Re: get the selection in an NSOutlineView
Re: get the selection in an NSOutlineView
- Subject: Re: get the selection in an NSOutlineView
- From: Rua Haszard Morris <email@hidden>
- Date: Thu, 10 Jun 2010 09:58:09 +1200
Thanks all, itemForRow was the missing piece of the puzzle. Now this thing makes sense..
>> 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.
_______________________________________________
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