Re: ARC and CFType release callback
Re: ARC and CFType release callback
- Subject: Re: ARC and CFType release callback
- From: Greg Parker <email@hidden>
- Date: Tue, 19 Jun 2012 21:13:54 -0700
On Jun 19, 2012, at 8:58 PM, Dave Keck <email@hidden> wrote:
> Greg Parker wrote:
>> Clean up the void* context with CFRelease(context) or (ObjectType *)CFBridgingRelease(context)
>
> I see -- I was under the impression that CFBridgingRetain/Release was
> meant for converting to/from CFTypes rather than arbitrary pointers,
> but it works as expected.
Once you have a CFTypeRef via CFBridgingRetain(), ARC doesn't care what you do with it. Convert it to and from uintptr_t, pass it through a void*, send it around via IPC, whatever.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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