How can I release an NSString?
How can I release an NSString?
- Subject: How can I release an NSString?
- From: Arthur VIGAN <email@hidden>
- Date: Sun, 19 Jan 2003 10:11:39 +0100
Hi,
I have a quite simple question, which I find annoying...
Let's consider the following method:
- (NSString *)giveMeAString
{
NSString *aString;
aString = [NSString stringWithString:@"Hello World!"];
return aString
}
My question is: is memory leaking in this code, because the string is
never released? Should I use autorelease?
Thanks in advance for your answers to this basic question,
Arthur
_______________________________________________
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.