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

Re: Memory Management


  • Subject: Re: Memory Management
  • From: Scott Ribe <email@hidden>
  • Date: Fri, 30 Dec 2005 16:24:53 -0700
  • Thread-topic: Memory Management

I think you misunderstand the function of autorelease pools. They are not
allocation pools like you may have encountered in various C/C++ memory
managers. They are nothing more than lists of objects to which release
messages will be sent at some future time. When the current pool is
released, any objects to which it sends release messages which don't
decrement to a release count of 0 will not be dealloc'd. Any such objects
can still be sent a release message the normal way, or an autorelease
message which will result in a release message when the now-current pool is
released.


--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Memory Management (From: Jordan Evans <email@hidden>)

  • Prev by Date: Memory Management
  • Next by Date: How do I Bind Radio Buttons (NSMatrix) with a single NSTextField?
  • Previous by thread: Memory Management
  • Next by thread: How do I Bind Radio Buttons (NSMatrix) with a single NSTextField?
  • Index(es):
    • Date
    • Thread