Re: autorelease pool
Re: autorelease pool
- Subject: Re: autorelease pool
- From: "Clark Cox" <email@hidden>
- Date: Tue, 23 Oct 2007 11:59:41 -0700
On 10/23/07, Erfan Aleemullah <email@hidden> wrote:
> Yes, I am trying to figure out whether or not I need to use the release pool
> and was throwing the above code out as an example - what I wanted to know is
> **do I need the autorelease pool if the retain count is 1 after the command
> [myObject release]; *
You can't know what the retain count is after the release; after the
release (assuming you had the only reference), you've got a dead
object, inspecting it's contents is a no-no.
--
Clark S. Cox III
email@hidden
_______________________________________________
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