Re: NSMutableString question
Re: NSMutableString question
- Subject: Re: NSMutableString question
- From: Graham Cox <email@hidden>
- Date: Wed, 17 Sep 2008 11:22:58 +1000
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.
cheers, Graham
_______________________________________________
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