• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSCFArray?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSCFArray? (From: Ian Joyner <email@hidden>)
 >Re: NSCFArray? (From: Nick Zitzmann <email@hidden>)
 >Re: NSCFArray? (From: Chris Suter <email@hidden>)

  • Prev by Date: Re: Qustion about possibly bad advice in NSView documentation
  • Next by Date: Re: how to build finalcut-pro style gui apps?
  • Previous by thread: Re: NSCFArray?
  • Next by thread: Problem launching app with embedded frameworks
  • Index(es):
    • Date
    • Thread