Re: dealloc not being called?
Re: dealloc not being called?
- Subject: Re: dealloc not being called?
- From: Andreas Monitzer <email@hidden>
- Date: Fri, 28 Sep 2001 00:09:23 +0200
On Thursday, September 27, 2001, at 11:59 , Erik M. Buck wrote:
----- Original Message ----- >
Usually the best way to handle it is to define applicationWillTerminate:
in NSApplication's delegate. Of course, when writing a preferences pane
you can't do that, so you're out of luck.
You are NOT out of luck. Register for the
NSApplicationWillTerminateNotification notification from ANY class with
the
default notification center.
Oh yes, I forgot :-)
However, as already mentioned, memory, open
files, signals, etc. are cleaned up automatically by the operating system.
Well, but not tools launched by the pane (very common with System
Preferences). I ended up handling the problem on the other side by
catching the notification that is send when a DO-connection dies.
andy
--
God created the universe in 6 days because He didn't have to worry about
an installed base.