Re: Where is NSList?
Re: Where is NSList?
- Subject: Re: Where is NSList?
- From: Finlay Dobbie <email@hidden>
- Date: Sat, 31 Jul 2004 13:42:59 +0100
On 28 Jul 2004, at 08:59, Steve Checkoway wrote:
On Jul 28, 2004, at 12:39 AM, Dustin Voss wrote:
It is my understanding that NSArray's implementation changes between
a more traditional array and a linked list, depending on the number
of elements it contains.
I don't claim to be an expert but that sounds....unlikely. Do you have
some sort of source for this information?
NSArray is implemented using CFArray, which has the following
(internal) types:
enum { /* Bits 0-1 */
__kCFArrayImmutable = 0,
__kCFArrayFixedMutable = 1,
__kCFArrayMutableDeque = 2,
__kCFArrayMutableStore = 3
};
For further information, see CFArray.c
<
http://cvs.opendarwin.org/index.cgi/src/CoreFoundation/
Collections.subproj/CFArray.c?rev=1.1.1.4&content-type=text/x-cvsweb-
markup>
-- Finlay
_______________________________________________
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.