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

autorelease pool


  • Subject: autorelease pool
  • From: "Erfan Aleemullah" <email@hidden>
  • Date: Tue, 23 Oct 2007 13:50:55 -0400

I was wondering how this works and what happens if the retain count reaches
0 but the object wasn't part of a autorelease pool ?
*Example:*

NS* String Line = [NSString alloc] init];

.. random code ..

[Line release];

Now, what happens if the retain count is 1 and if its 0 for NSString Line ?
?

How should I use an autorelease pool to actually deallocate the memory used
by Line ?
_______________________________________________

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: autorelease pool
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Posting keyboard repeat events
  • Next by Date: Re: Window/View Size Constraining
  • Previous by thread: Re: Posting keyboard repeat events
  • Next by thread: Re: autorelease pool
  • Index(es):
    • Date
    • Thread