Re: Where is NSList?
Re: Where is NSList?
- Subject: Re: Where is NSList?
- From: Shawn Erickson <email@hidden>
- Date: Tue, 27 Jul 2004 14:45:31 -0700
On Jul 27, 2004, at 2:39 PM, Shawn Erickson wrote:
On Jul 27, 2004, at 2:40 PM, Tim Conkling wrote:
I'm surprised that Cocoa/CoreFoundation doesn't contain some sort of
iterable (iteratable?) container. Either I'm missing something, or
this is a rather large hole in the framework. I'm looking for a
container that returns iterators of some sort for each object stored
in it, so that each object knows exactly where it is in the container
(making for easy deletion, given the object to be deleted).
How do people handle this sort of thing in Cocoa? I'm used to STL's
map, list, et al, which use these sorts of iterators.
Did you note NSEmuerator[1]?
Consider review the following conceptual documentation on the
collections provided in Cocoa...
<http://developer.apple.com/documentation/Cocoa/Conceptual/
Collections/index.html>
-Shawn
[1]
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSEnumerator.html#//apple_ref/occ/cl/
NSEnumerator>
Also note NSIndexSet which is utilized by (but not exclusive to)
NSArrayController for various things related to tracking object indexes
in arrays, etc.
<
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSIndexSet.html#//apple_ref/occ/cl/NSIndexSet>
_______________________________________________
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.