- (void)createAString:(NSString **)str
{
*str = [NSString stringWithString:@"Hi all!"];
[*str autorelease]; // ???? is this right ?
}
How should I use release or autorelease ? I don't want to release outside of the function of course :)
...
NSString *createStr;
[self createAString:&createStr];
NSLog(@"%@", createStr);