Thanks. I will file a request.

> 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.
I did it, using my own array, but I have noticed that in case of multiple
selection (by clicking on the tableView rows), even
    selectRow:(int)rowIndex byExtendingSelection:(BOOL)flag
gets always invoked sequentially with a positive incremental rowIndex (like
0, 1, 2...). This doesn't help.
I guess I have to override mouseDown and keyDown then invoke by myself
selectRow sequentially passing my rowIndex.



> Da: Corbin Dunn <[email protected]>
> Data: Wed, 14 Oct 2009 09:38:16 -0700
> A: "gMail.com" <[email protected]>
> Cc: <[email protected]>
> Oggetto: Re: SelectedRowIndexes
> 
> 
> 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).
> corbin



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to