• 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
copying nsstrings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

copying nsstrings


  • Subject: copying nsstrings
  • From: Tavis <email@hidden>
  • Date: Fri, 28 Nov 2003 22:33:31 -0800

I have a method that keeps updating a string and eventually It crashes
with a bad access. Do I need to free the NSstring somehow?
My method is like this:

NSString *backupString, *newString;

- (IBAction) updateString:(id)dummy
{
backupString = [newString copy];
}

After I call updateString a few times, it crashes.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: copying nsstrings
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Catching JNI exception in Objective C
  • Next by Date: unique ids
  • Previous by thread: SVG?
  • Next by thread: Re: copying nsstrings
  • Index(es):
    • Date
    • Thread