Re: NSIndex with discontinuous values
Re: NSIndex with discontinuous values
- Subject: Re: NSIndex with discontinuous values
- From: "Clark Cox" <email@hidden>
- Date: Thu, 22 Nov 2007 07:26:22 -0800
On Nov 22, 2007 2:26 AM, Lorenzo <email@hidden> 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 *indexSet = [NSMutableIndexSet indexSet];
[indexSet addIndex: 1];
[indexSet addIndex: 4];
[indexSet addIndex: 6];
[indexSet addIndex: ...];
etc.
--
Clark S. Cox III
email@hidden
_______________________________________________
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