Re: Objective-C Question
Re: Objective-C Question
- Subject: Re: Objective-C Question
- From: Andy Lee <email@hidden>
- Date: Mon, 11 Mar 2013 16:41:43 -0400
On Mar 11, 2013, at 4:30 PM, Seth Willits <email@hidden> 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 (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