On Tue, 9 Mar 2010 13:41:03 -0800, Laurent Daudelin said: >I've been running in that situation and I'm just wondering if there are >any advice for/against one or the other method. > >For example, is: > >NSMutableArray *anArray = [[NSMutableArray array] retain]; > >better than: > >NSMutableArray *anArray = [[NSMutableArray alloc] init];
I prefer the latter because with GC 'retain' does nothing, and after writing GC-only code for so long, seeing it looks 'funny'. The latter doesn't look funny with neither GC nor RR. -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ 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