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

Re: NSMutableString question


  • Subject: Re: NSMutableString question
  • From: Dave DeLong <email@hidden>
  • Date: Tue, 16 Sep 2008 19:24:18 -0600


On 16 Sep, 2008, at 7:22 PM, Graham Cox wrote:


On 17 Sep 2008, at 11:11 am, Dave DeLong wrote:

because only a couple days ago I had a crash when I tried releasing an already autoreleased object


Yes, because that would be an over-release. release must be balanced by a preceding retain. But once an object has been added to an autorelease pool it is retained by the pool, so there's nothing you can do to deallocate it other than release the pool itself.

Is it actually retained by the pool, or does the pool just delay the final release?


Dave

_______________________________________________

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: Jason Coco <email@hidden>
References: 
 >NSMutableString question (From: John Zorko <email@hidden>)
 >Re: NSMutableString question (From: Dave DeLong <email@hidden>)
 >Re: NSMutableString question (From: Graham Cox <email@hidden>)
 >Re: NSMutableString question (From: Dave DeLong <email@hidden>)
 >Re: NSMutableString question (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSMutableString question
  • Next by Date: Re: NSMutableString question
  • Previous by thread: Re: NSMutableString question
  • Next by thread: Re: NSMutableString question
  • Index(es):
    • Date
    • Thread