• 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
NSMutableString question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMutableString question


  • Subject: NSMutableString question
  • From: John Zorko <email@hidden>
  • Date: Tue, 16 Sep 2008 17:56:22 -0700


Hello, all ...

I've another simple ObjC question that I hope someone can answer -- this has to do with memory management and NSMutableString. If I do this:

  NSString *str = [NSMutableString string];

... what is the best way to reclaim that space? Do I do [str release] (no alloc was called by me, so I think not, but i'm not sure), or str = nil, or something else?

Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com











_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: NSMutableString question
      • From: Dave DeLong <email@hidden>
  • Prev by Date: Inverse or remove alpha mask from tiff
  • Next by Date: Re: NSMutableString question
  • Previous by thread: Inverse or remove alpha mask from tiff
  • Next by thread: Re: NSMutableString question
  • Index(es):
    • Date
    • Thread