On Oct 30, 2012, at 17:35 , Greg Parker <gpar...@apple.com> wrote: > It is. All NS object types are bridged to a generic NSCFType if they aren't > bridged to something more specific. CFRetain() et al work on all objects. The > CF functions are the recommended and expected solution for explicit memory > management in ARC code. > > The correct way to write your code is probably > CFSocketContext ctx; > ctx.retain = CFRetain; > ctx.release = CFRelease; > ctx.info = (__bridge void *)yourObject;
Awesome. That's how I would've wanted it to work. Thanks to all for spelling it out for me. -- Rick _______________________________________________ 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