Re: Style question
Re: Style question
- Subject: Re: Style question
- From: Joar Wingfors <email@hidden>
- Date: Mon, 30 Aug 2010 08:37:08 -0700
On 30 aug 2010, at 08.29, Vincent Habchi wrote:
> baz = [[[Foo alloc] init] autorelease];
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.
That said, this is a subjective preference, and there are no official guidelines on the topic. You'll probably find different opinions if you ask around, and you're free to pick any style that you want - as long as you get the memory management right in the end.
j o a r
_______________________________________________
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