Re: KVC and Core Foundation types
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