Re: Delayed Autorelease
Re: Delayed Autorelease
- Subject: Re: Delayed Autorelease
- From: "Patrick M. Rutkowski" <email@hidden>
- Date: Thu, 8 Apr 2010 11:58:01 -0400
Ah, a very good point, I'll turn that on right away; I can't believe I
forgot that. Thanks :-)
On Thu, Apr 8, 2010 at 11:40 AM, Joar Wingfors <email@hidden> wrote:
>
> 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