• 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: John Randolph <email@hidden>
  • Date: Fri, 30 Jan 2004 16:39:49 -0800

On Jan 30, 2004, at 4:17 PM, Herr Witten wrote:

How are noncontiguous indexes added to an index set?

You need to use an NSMutableIndexSet, which has -addIndex: -addIndexes: and -addIndexesInRange: methods. If you need the result to be immutable, you can create a new NSIndexSet and initialize it with -initWithIndexSet:

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSIndexSet (From: Herr Witten <email@hidden>)

  • Prev by Date: Re: Changing font stuff in NSTextView + Undo
  • Next by Date: Re: NSArrayController Funkyness
  • Previous by thread: NSIndexSet
  • Next by thread: Flickery NSAlertPanel
  • Index(es):
    • Date
    • Thread