Do I need to release NSString generated using @"..."?

objective-c

Solution

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.

Problem

If I make an NSString using the code below, do I need to need to release someString? ``` NSString *someString = @"somestring"; ```

Original source