• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SelectedRowIndexes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SelectedRowIndexes


  • Subject: Re: SelectedRowIndexes
  • From: "gMail.com" <email@hidden>
  • Date: Fri, 16 Oct 2009 11:28:03 +0200
  • Thread-topic: SelectedRowIndexes

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@hidden>
> Data: Wed, 14 Oct 2009 09:38:16 -0700
> A: "gMail.com" <email@hidden>
> Cc: <email@hidden>
> 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@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

References: 
 >Re: SelectedRowIndexes (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: SelectedRowIndexes
  • Next by Date: Re: Programming Style: Method Definition with or without a semicolon.
  • Previous by thread: Re: SelectedRowIndexes
  • Next by thread: Re: SelectedRowIndexes
  • Index(es):
    • Date
    • Thread