• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFNetworking and ARC (was: ARC conversion help - CFErrorRef* and NSError**)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >ARC conversion help - CFErrorRef* and NSError** (From: Alex Kac <email@hidden>)
 >Re: ARC conversion help - CFErrorRef* and NSError** (From: John McCall <email@hidden>)
 >Re: ARC conversion help - CFErrorRef* and NSError** (From: Rick Mann <email@hidden>)
 >Re: ARC conversion help - CFErrorRef* and NSError** (From: Quincey Morris <email@hidden>)
 >Re: ARC conversion help - CFErrorRef* and NSError** (From: Rick Mann <email@hidden>)
 >Re: ARC conversion help - CFErrorRef* and NSError** (From: Roland King <email@hidden>)
 >CFNetworking and ARC (was: ARC conversion help - CFErrorRef* and NSError**) (From: Rick Mann <email@hidden>)
 >Re: CFNetworking and ARC (was: ARC conversion help - CFErrorRef* and NSError**) (From: Roland King <email@hidden>)
 >Re: CFNetworking and ARC (was: ARC conversion help - CFErrorRef* and NSError**) (From: Rick Mann <email@hidden>)
 >Re: CFNetworking and ARC (was: ARC conversion help - CFErrorRef* and NSError**) (From: Roland King <email@hidden>)

  • Prev by Date: Re: CFNetworking and ARC (was: ARC conversion help - CFErrorRef* and NSError**)
  • Next by Date: Event loop expiration date insight
  • Previous by thread: Re: CFNetworking and ARC (was: ARC conversion help - CFErrorRef* and NSError**)
  • Next by thread: Re: ARC conversion help - CFErrorRef* and NSError**
  • Index(es):
    • Date
    • Thread