Re: CFNetworking and ARC (was: ARC conversion help - CFErrorRef* and NSError**)
Re: CFNetworking and ARC (was: ARC conversion help - CFErrorRef* and NSError**)
- Subject: Re: CFNetworking and ARC (was: ARC conversion help - CFErrorRef* and NSError**)
- From: Ken Thomases <email@hidden>
- Date: Tue, 30 Oct 2012 22:05:02 -0500
On Oct 30, 2012, at 9:20 PM, Roland King wrote:
> On 31 Oct, 2012, at 10:16, Rick Mann <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden