If I make an NSString using the code below, do I need to need to release someString?
NSString *someString = @"somestring";
No, it's a compile time constant string object, so it doesn't need releasing. It's the moral equiv of char *c = "hello world" -- where the string hello world is in global data, and you're assigning the address of this data to the pointer c.
1.4m articles
1.4m replys
5 comments
57.0k users