ARC and CFType release callback
ARC and CFType release callback
- Subject: ARC and CFType release callback
- From: Dave Keck <email@hidden>
- Date: Tue, 19 Jun 2012 23:28:05 -0400
I have a CFType (specifically a CGPattern) that uses a release
callback to free resources, and the void* pointer passed to the
callback is the object to be released.
What's the correct way to release this void* pointer (that's really an
NSObject subclass) under ARC? Casting it using __bridge_transfer
doesn't seem right since the resulting expression is unused, and the
compiler of course warns of this fact.
Thanks,
David
_______________________________________________
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