Re: NSIndexSet
Re: NSIndexSet
- Subject: Re: NSIndexSet
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 21 Nov 2008 08:51:39 -0700
First of all, when you want to create a new topic, please do not ever
reply to an existing message. This breaks threading, since this thread
now has two topics instead of one. Thanks.
On Nov 21, 2008, at 8:44 AM, David Blanton wrote:
How would one construct an NSIndexSet containing the indices 2,4,5 ?
There are several ways, like this:
NSMutableIndexSet *set = [NSMutableIndexSet
indexSetWithIndexesInRange:NSMakeRange(2,5)];
[set removeIndex:3];
Or like this:
NSMutableIndexSet *set = [NSMutableIndexSet indexSet];
[set addIndex:2];
[set addIndex:4];
[set addIndex:5];
etc.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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