Re: Where is NSList?
Re: Where is NSList?
- Subject: Re: Where is NSList?
- From: Chris Hanson <email@hidden>
- Date: Wed, 28 Jul 2004 01:44:53 -0700
On Jul 27, 2004, at 11:09 PM, Tim Conkling wrote:
Basically, all I was asking was whether Apple had created a linked
list object for Cocoa (hence the title of my original post); I was
surprised that I had not seen such a class in the Cocoa documentation
and was thinking I may have missed something.
There is no NSLinkedList. What would the point of such an object be?
There's already one ordered collection, NSArray.
I'd suggest using NSArray/NSMutableArray for ordered collections, and
only worrying about their access characteristics if use and profiling
of your application point to them as a performance issue.
If that happens, then you can create a custom subclass of NSArray or
NSMutableArray -- and possibly an NSEnumerator subclass to go with them
-- that meets your particular access characteristics and also
interoperates well with the rest of the frameworks.
-- Chris
--
Chris Hanson <email@hidden>
http://www.livejournal.com/users/chanson/
_______________________________________________
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.