• 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: Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected


  • Subject: Re: Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected
  • From: Clark Cox <email@hidden>
  • Date: Thu, 3 Sep 2009 14:14:04 -0700

On Thu, Sep 3, 2009 at 1:28 PM, Hamish Allan<email@hidden> wrote:
> Hi,
>
> I'm loving Build and Analyze, but in ASyncSocket an Obj-C method
> returning a CFSocketRef whose name is
> createAcceptSocketForAddress:error: is chastised for returning an
> object with a +1 retain count without being called copy/new/alloc.
> Should the CF naming conventions not apply when a CF object is being
> returned?

No, Cocoa naming conventions apply to Objective-C method names. If
possible, I would recommend naming that method
mewAcceptSocketForAddress:error:.


--
Clark S. Cox III
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected
      • From: Jeremy Pereira <email@hidden>
References: 
 >Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected (From: Hamish Allan <email@hidden>)

  • Prev by Date: How to set the GCC System Version? GCC_VERSION - gcc_select?
  • Next by Date: Re: How to set the GCC System Version? GCC_VERSION - gcc_select?
  • Previous by thread: Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected
  • Next by thread: Re: Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected
  • Index(es):
    • Date
    • Thread