NSIndexSet question
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.