On Oct 30, 2012, at 4:39 AM, Rick Mann wrote:

> Then again, I ran into a problem that I don't know how to properly solve, 
> using CFSockets. I need to retain an NSObject I pass into CFSocket, and have 
> it released when the socket is released, not when a callback occurs, but 
> there's no good way to do that.

That's what the CFSocketContext structure is for.  Yes, it uses callbacks, but 
I think these are different from what you're referring to, which I assume is 
the CFSocketCallBack.

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to