Re: dealloc not being called?
Re: dealloc not being called?
- Subject: Re: dealloc not being called?
- From: "Erik M. Buck" <email@hidden>
- Date: Thu, 27 Sep 2001 16:59:03 -0500
----- 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. However, as already mentioned, memory, open
files, signals, etc. are cleaned up automatically by the operating system.