• 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: NSIndexSet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >GetApplicationTextEncoding & "carbon free" (From: spsaxena <email@hidden>)
 >Re: GetApplicationTextEncoding & "carbon free" (From: "Michael Ash" <email@hidden>)
 >NSIndexSet (From: David Blanton <email@hidden>)

  • Prev by Date: Re: BOOL value in Dictionary
  • Next by Date: Re: NSIndexSet
  • Previous by thread: NSIndexSet
  • Next by thread: Re: NSIndexSet
  • Index(es):
    • Date
    • Thread