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

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

References: 
 >autorelease pool (From: "Erfan Aleemullah" <email@hidden>)
 >Re: autorelease pool (From: Mike Abdullah <email@hidden>)
 >Re: autorelease pool (From: "Erfan Aleemullah" <email@hidden>)

  • Prev by Date: Re: autorelease pool
  • Next by Date: Re: autorelease pool
  • Previous by thread: Re: autorelease pool
  • Next by thread: Re: autorelease pool
  • Index(es):
    • Date
    • Thread