• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: dealloc not being called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: dealloc not being called? (From: "Erik M. Buck" <email@hidden>)

  • Prev by Date: Re: Help!
  • Next by Date: Re: AppleScript Studio.
  • Previous by thread: Re: dealloc not being called?
  • Next by thread: Re: dealloc not being called?
  • Index(es):
    • Date
    • Thread