copying nsstrings
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.