Re: SelectedRowIndexes
Re: SelectedRowIndexes
- Subject: Re: SelectedRowIndexes
- From: Corbin Dunn <email@hidden>
- Date: Wed, 14 Oct 2009 09:38:16 -0700
On Oct 14, 2009, at 8:55 AM, gMail.com wrote:
> Hi,
> when I call [tableView selectedRowIndexes];
> I always get a indexSet already sorted by row.
> Instead I need to sort it as the selection order.
> I mean, if the user selected the rows in the order
>
> Row 6
> Row 2
> Row 8
>
> I want to get 6, 2, 8 and not 2, 6, 8 as I get now with selectedRowIndexes.
> How can I do that?
You can't. Please log a bug requesting this ability (I have heard of more than one person wanting this).
Well, you could do it yourself with heavy subclassing of NSTableView and overriding the -selectRow.... type of methods and keeping track of the order yourself.
corbin
_______________________________________________
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