• 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: KVC and Core Foundation types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVC and Core Foundation types


  • Subject: Re: KVC and Core Foundation types
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 31 Jan 2013 21:51:58 -0800

On Jan 31, 2013, at 9:46 PM, Quincey Morris <email@hidden> wrote:

> On Jan 31, 2013, at 21:08 , Kyle Sluder <email@hidden> wrote:
>
>> But CFTypes *are* NSObjects.
>
> Only if they're toll-free bridged,

All CFTypes are toll-free bridges to NSObject. (I was surprised when I learned this, and I don't know how far back this holds true.)


> and even then they'll need to conform to NSCoding if they're going to encode/decode automatically.

This is certainly true.

> The non-toll-free-bridged ones are memory-managed objects, but not necessarily ObjC objects. GCD objects would be a prime example of this.

GCD objects and XPC objects are NSObjects as of 10.8.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: KVC and Core Foundation types
      • From: Quincey Morris <email@hidden>
References: 
 >KVC and Core Foundation types (From: Graham Cox <email@hidden>)
 >Re: KVC and Core Foundation types (From: Seth Willits <email@hidden>)
 >Re: KVC and Core Foundation types (From: Kyle Sluder <email@hidden>)
 >Re: KVC and Core Foundation types (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: KVC and Core Foundation types
  • Next by Date: Re: KVC and Core Foundation types
  • Previous by thread: Re: KVC and Core Foundation types
  • Next by thread: Re: KVC and Core Foundation types
  • Index(es):
    • Date
    • Thread