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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to