advertisement

Article:
  Adding Spit and Polish to Your Cocoa App
Subject:   OT: help with dealloc
Date:   2002-06-27 08:38:11
From:   mikebeam
Response to: OT: help with dealloc

Actually, this question is very on-topic. The answer to your question is to implement in your application delegate the NSApplication delegate method -applicationWillTerminate:. This method will be invoked immediately before the application quits, so it will suit your needs.


BTW, as far as I'm concerned, if anyone is reading through previous columns, and has a question, the most recent talk back is a perfectly good place for those questions. This applies to any general Cocoa programming questions you may have too.


Mike