RS: appendFormat allocation implications
RS: appendFormat allocation implications
- Subject: RS: appendFormat allocation implications
- From: Roland Silver <email@hidden>
- Date: Sat, 2 Jun 2007 19:46:57 -0600
A question about the NSMutableString method appendFormat:
Does the "constructed string" which is added to the receiver exist as
an allocated object after the appendFormat is complete?
E.g. after performing
NSMutableString* s = [[NSMutableString stringWithString:@"foo"];
[s appendFormat:@"%c", 'a'];
is there a garbage string @"a" floating around, waiting to be
autoreleased?
--Roland
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden