Re: Delayed Autorelease
Re: Delayed Autorelease
- Subject: Re: Delayed Autorelease
- From: Joar Wingfors <email@hidden>
- Date: Thu, 8 Apr 2010 08:40:08 -0700
On 8 apr 2010, at 08.37, Patrick M. Rutkowski wrote:
> Another mistake was self.array being initialized as
> self.array = [[NSMutableArray alloc] init]
>
> when it should have been
> self.array = [NSMutableArray array]
>
> I'm still somewhat new to this :-)
>
> I totally get what's going on, I'm just not good at spotting the usual
> mistakes yet; and I'm a bit sleepy at the moment.
If you're using Xcode 3.2 (requires Mac OS X 10.6), you should be using the static analyzer. It is good at finding problems like these.
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