Working through Chapter 3 of Cocoa Programming for Mac OS X. Question: why can you do this
NSString *temp = @"this is a string";
and you don’t have to do this:
NSString *temp = [[NSString alloc] init];
temp = @"this is a string";
Working through Chapter 3 of Cocoa Programming for Mac OS X. Question: why can you do this
NSString *temp = @"this is a string";
and you don’t have to do this:
NSString *temp = [[NSString alloc] init];
temp = @"this is a string";
One thought on “NSString memory allocation”