Re: EXC-BAD-ACCESS bug
Re: EXC-BAD-ACCESS bug
- Subject: Re: EXC-BAD-ACCESS bug
- From: Sherm Pendley <email@hidden>
- Date: Tue, 27 Feb 2007 06:11:15 -0500
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--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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