On Oct 30, 2012, at 9:20 PM, Roland King wrote: > On 31 Oct, 2012, at 10:16, Rick Mann <rm...@latencyzero.com> wrote: > >> One thing that's not clear in the docs for >> CFSocketCreateConnectedToSocketSignature() is what happens to the >> CFSocketSignature parameter. Is that information copied immediately, or >> should it persist? is the supplied CFDataRef retained? The docs are clear >> about the context parameter, but not this one. > > It's not needed after the call has finished, just used to create the socket, > so no retain or copy needed.
And, generally, if there's no documentation to the contrary, you should assume that all other code does the appropriate thing to satisfy its needs, leaving you to only have to worry about your code. That is, if it needs to retain something, it will and it takes the responsibility to balance that retain with a release. If it needs to copy something, ditto. Neither is your concern. Regards, Ken _______________________________________________ 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