• 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: Style question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Style question


  • Subject: Re: Style question
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 30 Aug 2010 17:47:42 -0400
  • Organization: Rogue Research Inc.

On Mon, 30 Aug 2010 08:37:08 -0700, Joar Wingfors said:

>I think that it's definitively preferable to autorelease on the same
>line. It keeps all memory management together, and it's much less likely
>that later rearrangements of the code in question will result in memory
leaks.

And for those that agree, AnalysisTool can flag failure to follow this style:

<http://www.karppinen.fi/analysistool/#memory-management>

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: Style question
      • From: vincent habchi <email@hidden>
References: 
 >Style question (From: Vincent Habchi <email@hidden>)
 >Re: Style question (From: Joar Wingfors <email@hidden>)

  • Prev by Date: Re: Style question
  • Next by Date: Simple instance [[alloc] init] question.
  • Previous by thread: Re: Style question
  • Next by thread: Re: Style question
  • Index(es):
    • Date
    • Thread