• 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: ARC code in a non ARC app. iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: ARC code in a non ARC app. iOS
      • From: Quincey Morris <email@hidden>
References: 
 >ARC code in a non ARC app. iOS (From: Alex Zavatone <email@hidden>)
 >Re: ARC code in a non ARC app. iOS (From: Quincey Morris <email@hidden>)
 >Re: ARC code in a non ARC app. iOS (From: Alex Zavatone <email@hidden>)
 >Re: ARC code in a non ARC app. iOS (From: Quincey Morris <email@hidden>)

  • Prev by Date: Changing timing for looping uiview animation
  • Next by Date: Re: ARC code in a non ARC app. iOS
  • Previous by thread: Re: ARC code in a non ARC app. iOS
  • Next by thread: Re: ARC code in a non ARC app. iOS
  • Index(es):
    • Date
    • Thread