|
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
|