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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com