Does one have to release objects allocated by class functions in NSString
Once the function returns, does one have to release the object after use? Or is it added to the autorelease pool by the class methods?
Thanks,
-TRS
MacBook, Mac OS X (10.5.2)
Apple’s Worldwide Developers Conference to kick off June 10 at 10 a.m. PDT with Keynote address
The Keynote will be available to stream on apple.com, the Apple Developer app, the Apple TV app, and the Apple YouTube channel. On-demand playback will be available after the conclusion of the stream.
The Keynote will be available to stream on apple.com, the Apple Developer app, the Apple TV app, and the Apple YouTube channel. On-demand playback will be available after the conclusion of the stream.
Developer Forums relocated!
Need help with Apple Developer tools and technologies? Want to share information with other developers and Apple engineers? Visit Developer Forums at Apple.
Need help with Apple Developer tools and technologies? Want to share information with other developers and Apple engineers? Visit Developer Forums at Apple.
MacBook, Mac OS X (10.5.2)
NSString *myString = [[NSString alloc] init]; // Belongs to you
NSString *myString = [NSString stringWithFormat:@"%@", anObject]; //Belongs to NSString
Does one have to release objects allocated by class functions in NSString