Re: [Pyobjc-dev] Cocoa/Objective-C equiv to __del__?
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-08-20 06:10:40
|
On Tuesday, 19 August, 2003, at 16:55, Zachery Bir wrote: > Since we're not using __init__() for Cocoa-derived objects (delegates > and the like), is there an analogous means for providing for cleanup, > like the __del__() method? Yes, there is. The method is named __del__ :-) Dealloc won't work, I'm pretty sure the bridge will throw an exception if you try to define that method. That's because the bridge defines it's own dealloc method that is needed to clean up the python state (clear the __dict__, ...). Ronald |