Re: SelectedRowIndexes

2009-10-16 Thread gMail.com
: SelectedRowIndexes On Oct 14, 2009, at 11:55 AM, gMail.com wrote: Oh, come on, at least pick a witty pseudonym. :-D 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

Re: SelectedRowIndexes

2009-10-16 Thread gMail.com
rowIndex. Da: Corbin Dunn corb...@apple.com Data: Wed, 14 Oct 2009 09:38:16 -0700 A: gMail.com mac.iphone@gmail.com Cc: cocoa-dev@lists.apple.com Oggetto: Re: SelectedRowIndexes On Oct 14, 2009, at 8:55 AM, gMail.com wrote: Hi, when I call [tableView selectedRowIndexes]; I always

Re: SelectedRowIndexes

2009-10-15 Thread Peter Hudson
The user has an NSTableView in which is presented a number of elements ( 1 per row, typically 20 - 200 rows ) out of which they need to produce a number of sequenced sub groups. The user presses the 'Start Sub Group' key ( i.e. clear the sequence selection cache ) and then by picking a

Re: SelectedRowIndexes

2009-10-15 Thread Graham Cox
On 15/10/2009, at 5:24 PM, Peter Hudson wrote: The user has an NSTableView in which is presented a number of elements ( 1 per row, typically 20 - 200 rows ) out of which they need to produce a number of sequenced sub groups. The user presses the 'Start Sub Group' key ( i.e. clear the

Re: SelectedRowIndexes

2009-10-15 Thread Peter Hudson
We offer a drag and drop option as well - very similar to your idea. The problem is that our users find it easier to scroll their way through the list and command click on the appropriate rows. Users prefer to have their way I find. Peter On 15 Oct 2009, at 07:45, Graham Cox wrote: On

Re: SelectedRowIndexes

2009-10-15 Thread Chris Williams
@lists.apple.com Subject: Re: SelectedRowIndexes On 15/10/2009, at 5:24 PM, Peter Hudson wrote: The user has an NSTableView in which is presented a number of elements ( 1 per row, typically 20 - 200 rows ) out of which they need to produce a number of sequenced sub groups. The user presses

Re: SelectedRowIndexes

2009-10-15 Thread Graham Cox
On 15/10/2009, at 5:56 PM, Peter Hudson wrote: The problem is that our users find it easier to scroll their way through the list and command click on the appropriate rows. Users prefer to have their way I find. Ah, users. The bane of our lives! If only they didn't pay our wages... ;-)

SelectedRowIndexes

2009-10-14 Thread gMail.com
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

Re: SelectedRowIndexes

2009-10-14 Thread I. Savant
On Oct 14, 2009, at 11:55 AM, gMail.com wrote: Oh, come on, at least pick a witty pseudonym. :-D 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

Re: SelectedRowIndexes

2009-10-14 Thread Corbin Dunn
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

Re: SelectedRowIndexes

2009-10-14 Thread Kyle Sluder
On Wed, Oct 14, 2009 at 8:55 AM, gMail.com mac.iphone@gmail.com wrote: Instead I need to sort it as the selection order. I'm kind of curious (not, I must emphasize, incredulous) as to why you need this. Wouldn't it be better to record the order in which selections were made in the

Re: SelectedRowIndexes

2009-10-14 Thread Peter Hudson
I have tackled this problem by using the NSTableView delegate method tableViewSelectionDidChange: In this method I query the table for selected rows and then compare with the index set from the previous call to tableViewSelectionDidChange: I simply store the incremental changes in

Re: SelectedRowIndexes

2009-10-14 Thread gMail.com
mac.iphone@gmail.com Cc: cocoa-dev@lists.apple.com Oggetto: Re: SelectedRowIndexes On Wed, Oct 14, 2009 at 8:55 AM, gMail.com mac.iphone@gmail.com wrote: Instead I need to sort it as the selection order. I'm kind of curious (not, I must emphasize, incredulous) as to why you need

Re: SelectedRowIndexes

2009-10-14 Thread Kyle Sluder
and I show these coords on the Inspector. In that case, you will probably be best served by binding your table view's selectedRowIndexes property to a property on your controller, and having your controller expose a separate property that your inspector uses to determine the object to inspect. You