On Oct 19, 2011, at 6:24 AM, Roland King <r...@rols.org> wrote:

> Following Cocoa convention you'd want to cast it to what and autorelease it? 
> CGColorRef isn't toll-free bridged with anything. If you have been casting it 
> to id and autoreleasing it you might have gotten away with that before but I 
> don't think it's documented anywhere you can do that with CFTypes in general. 

All Core Foundation objects are at least bridged to NSObject precisely so you 
can call -retain/-release/-autorelease on  them.

--Kyle Sluder_______________________________________________

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

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

Reply via email to