Quantcast
Channel: Chris Ryan » Programming
Viewing all articles
Browse latest Browse all 3

NSString memory allocation

$
0
0

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";


Viewing all articles
Browse latest Browse all 3

Trending Articles