• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EXC-BAD-ACCESS bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: EXC-BAD-ACCESS bug (SOLVED)
      • From: email@hidden
References: 
 >EXC-BAD-ACCESS bug (From: email@hidden)

  • Prev by Date: Re: porting core data app to the dark side
  • Next by Date: Re: Create a nsimage from the nsbitmapimagerep
  • Previous by thread: Re: EXC-BAD-ACCESS bug
  • Next by thread: Re: EXC-BAD-ACCESS bug (SOLVED)
  • Index(es):
    • Date
    • Thread