Re: EXC-BAD-ACCESS bug (SOLVED)
Re: EXC-BAD-ACCESS bug (SOLVED)
- Subject: Re: EXC-BAD-ACCESS bug (SOLVED)
- From: email@hidden
- Date: Tue, 27 Feb 2007 15:46:39 +0100 (CET)
- Importance: Normal
> On Feb 27, 2007, at 4:25 AM, email@hidden wrote:
>
>> I'm tracking a "EXC-BAD-EXCESS" bug in my Cocoa project
> ...
>> NSArray *fileTypes = [NSArray
>> arrayWithObjects:@"david_Hardy2",@"txt",@"text",@"rtf",@"rtfd",@"htm",
>> @"html",@"webarchive",nil];
> ...
>> [fileTypes release];
>
> You did not create the fileTypes array with +alloc or -copy, nor with
> a variant of one of those methods like +allocWithZone: or -
> mutableCopy:, nor have you sent it a -retain. Therefore you are not
> responsible for sending it a -release.
>
> sherm--
Yes. Thanks to you both Sherm and Joar. I make those mistakes repeatedly
in different guises...
Ewan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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