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

Style question


  • Subject: Style question
  • From: Vincent Habchi <email@hidden>
  • Date: Mon, 30 Aug 2010 17:29:07 +0200

Hi everybody,

just an enquiry regarding coding style. What is considered best:

baz = [[[Foo alloc] init] autorelease];
…
return baz;

or

baz = [[Foo alloc] init];
…
return [baz autorelease];

?

Thanks!
Vincent_______________________________________________

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: Joar Wingfors <email@hidden>
    • Re: Style question
      • From: Ken Thomases <email@hidden>
    • Re: Style question
      • From: "A.M." <email@hidden>
    • Re: Style question
      • From: Dave DeLong <email@hidden>
    • Re: Style question
      • From: F van der Meeren <email@hidden>
  • Prev by Date: Finding source of EXC_BREAKPOINT crash
  • Next by Date: Re: Style question
  • Previous by thread: Re: Finding source of EXC_BREAKPOINT crash
  • Next by thread: Re: Style question
  • Index(es):
    • Date
    • Thread