Re: [Pyobjc-dev] Re: Cocoa/Objective-C equiv to __del__?
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-08-20 12:15:08
|
On Wednesday, 20 August, 2003, at 11:36, Michael Hudson wrote: > Ronald Oussoren <ous...@ci...> writes: > >> 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. > > Yup. Found that out just last night :-) That's not too surprising, my previous mail is probably the first time this got mentioned anywhere :-(. I'll add this to the documentation. Ronald |