FROM : Alastair Houghton
DATE : Thu Nov 22 11:29:33 2007
On 22 Nov 2007, at 10:26, Lorenzo wrote:
> I need to select, in one shot only, some rows of my table view with
>
> [tV selectRowIndexes:indexSet byExtendingSelection:NO];
>
> The rows are discontinuous, as 1, 4, 6, 7, 14, 23...
> So I have to create a discontinuous NSIndexSet. I can't see any way
> to do
> that. Have you any idea?
NSMutableIndexSet's -addIndex:, -addIndexes: or -addIndexesInRange:
methods?
Kind regards,
Alastair.
--
http://alastairs-place.net
DATE : Thu Nov 22 11:29:33 2007
On 22 Nov 2007, at 10:26, Lorenzo wrote:
> I need to select, in one shot only, some rows of my table view with
>
> [tV selectRowIndexes:indexSet byExtendingSelection:NO];
>
> The rows are discontinuous, as 1, 4, 6, 7, 14, 23...
> So I have to create a discontinuous NSIndexSet. I can't see any way
> to do
> that. Have you any idea?
NSMutableIndexSet's -addIndex:, -addIndexes: or -addIndexesInRange:
methods?
Kind regards,
Alastair.
--
http://alastairs-place.net
| Related mails | Author | Date |
|---|---|---|
| Lorenzo | Nov 22, 11:26 | |
| Alastair Houghton | Nov 22, 11:29 | |
| Clark Cox | Nov 22, 16:26 |






Cocoa mail archive

