Re: blocks and retaining CoreFoundation objects
Re: blocks and retaining CoreFoundation objects
- Subject: Re: blocks and retaining CoreFoundation objects
- From: Wade Tregaskis <email@hidden>
- Date: Wed, 10 Aug 2011 07:33:26 -0700
>> The ARC specification defines a "retainable pointer" as including those pointers that have the __attribute__((NSObject)) decoration, so this should behave as expected under ARC. <http://clang.llvm.org/docs/AutomaticReferenceCounting.html#objects>
>
> I am curious, though, in that CGImageRef is not toll-free bridged to a Foundation class. I had the impression that the API contract was that only bridged CF classes were guaranteed to implement reference-counting methods.
If a CF type isn't explicitly bridged to a particular class, it defaults to NSObject. So you get all the basic object management if nothing else.
_______________________________________________
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