Re: Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected
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