but if you didn’t, you don’t care. So returning a
string literal is OK.
> I would guess that literal NSStrings are (effectively) retained, since
> they're not going anywhere (they're literal constants, after all), but
> they're not obtained by "New", &quo
On Jul 4, 2011, at 6:23 PM, William Squires wrote:
> ...is a literal NSString autoreleased, or retained? Does it matter?
"Does not matter" is the answer. You can retain & release them all you want,
they're not going anywhere.
--
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.co
%@", @"YES");
}
which, IIRC, would return an autoreleased NSString, correct?)
This is, is a literal NSString autoreleased, or retained? Does it matter? I
would guess that literal NSStrings are (effectively) retained, since they're
not going anywhere (they're literal consta