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

NSIndexSet question


  • Subject: NSIndexSet question
  • From: Glenn Zelniker <email@hidden>
  • Date: Fri, 11 Jun 2004 20:04:39 -0400

Is it possible to select the elements of an NSArray in a quick way based on the elements of an NSIndexSet? By "quick" I mean in a way other than traversing the index set with -firstIndex, -lastIndex, and -indexLessThan methods. For example, suppose I have a tableView with multiple selection enabled and I get the row indices using NSTableView's -selectedRowIndexes method. Now, I want to use these indices to build a new NSArray based on the objects in an arbitrary array at the indices specified in the indexSet,

There doesn't seem to be an -(NSArray *)objectsAtIndexSet:(NSIndexSet *)indices method for arrays. Am I missing something?

Glenn Zelniker
_______________________________________________
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.


  • Follow-Ups:
    • Re: NSIndexSet question
      • From: "Mark A. Stratman" <email@hidden>
  • Prev by Date: Re: Re-Initializing (clearing) a NSTextView object
  • Next by Date: Re: 30 day trial howto?
  • Previous by thread: Re: Smooth Animation
  • Next by thread: Re: NSIndexSet question
  • Index(es):
    • Date
    • Thread