• 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
RS: appendFormat allocation implications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: RS: appendFormat allocation implications
      • From: Dominik Pich <email@hidden>
  • Prev by Date: Enabling NSButton
  • Next by Date: Re: RS: appendFormat allocation implications
  • Previous by thread: Re: Enabling NSButton
  • Next by thread: Re: RS: appendFormat allocation implications
  • Index(es):
    • Date
    • Thread