Re: [Pyobjc-dev] Memory management and broken link on website
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2006-10-25 08:08:12
|
On Wednesday, October 25, 2006, at 01:06AM, Bob Ippolito <bo...@re...> wrote: > >> Second question: Am I correct in understanding that the objects in >> the now-deleted pool remain valid so long as I still have a reference >> to them (say, in a python object) and that the memory for the other >> objects in the pool is properly freed? > >That is correct. The Python proxy around an Objective-C object >guarantees a positive retain count. That doesn't really have anything >to do with autorelease pools. An autorelease pool is nothing more than a mechanism to decrease the reference count "later" instead of immediately, it won't cause deallocation unless the autoreleased reference happened to be the last reference to an object. Ronald |