• 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: understanding conversions between CF and NS datatypes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: understanding conversions between CF and NS datatypes


  • Subject: Re: understanding conversions between CF and NS datatypes
  • From: Marcel Weiher <email@hidden>
  • Date: Fri, 5 Sep 2008 11:31:50 -0700


On Sep 5, 2008, at 4:52 , Michael Ash wrote:


But at run time they are the same type. If you disagree, just create
an NSArray and a CFArray (with the standard CFType callbacks) and try
to tell the difference between them!

This is true for NSArray, because it will create an NSCFArray under the hood which is a CFArray. However, it is not true for the case of a functional NSArray subclass, which will not be a CFArray underneath. CFArray functions will continue to work because they fall back to sending messages to the object in question when it's not a CF- object, but telling the difference is fairly easy if you want to do it.


Marcel

_______________________________________________

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: 
 >Re: understanding conversions between CF and NS datatypes (From: Negm-Awad Amin <email@hidden>)
 >Re: understanding conversions between CF and NS datatypes (From: "Michael Ash" <email@hidden>)
 >Re: understanding conversions between CF and NS datatypes (From: Negm-Awad Amin <email@hidden>)
 >Re: understanding conversions between CF and NS datatypes (From: "Michael Ash" <email@hidden>)
 >Re: understanding conversions between CF and NS datatypes (From: Negm-Awad Amin <email@hidden>)
 >Re: understanding conversions between CF and NS datatypes (From: "Michael Ash" <email@hidden>)

  • Prev by Date: [Q] How to enable Copy & Paste in a text field of a Final Cut Pro plugin window?
  • Next by Date: Re: submit textfield without pressing ener
  • Previous by thread: Re: understanding conversions between CF and NS datatypes
  • Next by thread: Re: understanding conversions between CF and NS datatypes
  • Index(es):
    • Date
    • Thread