Re: ARC code in a non ARC app. iOS
Re: ARC code in a non ARC app. iOS
- Subject: Re: ARC code in a non ARC app. iOS
- From: Uli Kusterer <email@hidden>
- Date: Fri, 26 Feb 2016 07:15:27 +0100
On 24 Feb 2016, at 00:47, Quincey Morris <email@hidden> wrote:
> For example, an object obtained via [[…alloc]init…] is generally assumed to be returned with a +1 ownership, but an object obtained via a class method named ‘newXXX…’ is generally assumed to be returned with +0 ownership.
Did you really mean +newBlah ? Not something like +blahWithX: or just +blah? Because +new is documented to just be a shorthand for +alloc followed by -init on the result, so +newBlah behaving differently than +new sounds kinda inconsistent to me. Did I miss a serious gotcha there?
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://stacksmith.org
_______________________________________________
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