On Mar 11, 2013, at 4:30 PM, Seth Willits <sli...@araelium.com> wrote:

> On Mar 11, 2013, at 1:21 PM, Dave wrote:
> 
>> +(NSMutableDictionary*) newDict
>> {
>> return [[NSMutableDictionary alloc] init];
>> }
> 
> (I hope you're using ARC otherwise this is a memory leak.)

Not if the caller knows to observe the rule about methods beginning with "new". 
But it's worth mentioning just in case.

--Andy


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to