Re: NSCFArray?
Re: NSCFArray?
- Subject: Re: NSCFArray?
- From: Alastair Houghton <email@hidden>
- Date: Tue, 25 Sep 2007 20:12:28 +0100
On 25 Sep 2007, at 04:11, Chris Suter wrote:
On 25/09/2007, at 12:56 PM, Nick Zitzmann wrote:
On Sep 24, 2007, at 7:57 PM, Ian Joyner wrote:
What is an NSCFArray? It turns up in IB if I instantiate an
NSArray. Even if I search for it on Apple Developer it asks Did
you mean NSArray. I imagine it's got something to do with toll-
free bridging. Is this correct?
Correct.
It's also partly to do with class clustering. An NSMutableArray
also ends up as an NSCFArray.
It's probably a good idea to emphasise that this (NSCFArray) is an
implementation detail, and as such it's possible that it may change.
Also, there's no guarantee that your code will never see some other
NSArray subclass (e.g. perhaps someone might use a custom NSArray to
hold a C-style array of integers).
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden