• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Status of @"" strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Status of @"" strings (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: NSPopUpButton Problem
  • Next by Date: Re: Look And Feel (Guidelines
  • Previous by thread: Re: Status of @"" strings
  • Next by thread: NSProgressIndicator disabled on sheet
  • Index(es):
    • Date
    • Thread