Re: Status of @"" strings
Re: Status of @"" strings
- Subject: Re: Status of @"" strings
- From: Ali Ozer <email@hidden>
- Date: Fri, 13 Jul 2001 13:29:46 -0700
So, if you want to have a temporary empty string that you CAN release so
that it won't hang around in the code for the life of the app, is this
preferred? --
NSString *emptyString = [[NSString alloc] init];
@"" is quite popular, and it turns out under normal circumstances
[[NSString alloc] init] will return [@"" copy] which ends up doing [@""
retain]. Of course this is an implementation detail.
Ali