Re: The good place for add code for doing sth. before quit application
Re: The good place for add code for doing sth. before quit application
- Subject: Re: The good place for add code for doing sth. before quit application
- From: "email@hidden" <email@hidden>
- Date: Fri, 14 Sep 2001 19:10:28 +0200
Implement the NSWindow delegate windowShouldClose if you want to bind
the action on a window or the NSApplication delegate
applicationWillTerminate for the whole application.
We're using both in a notepad-style application that saves all data on
deactivation. The delegates work perfectly well.
Thomas.
Am Freitag, 14. September 2001 um 18:49 schrieb email@hidden:
Hello all,
My application need to do something before it quit. I wonder where is
the best place to add the code for this purpose. Should I add in
dealloc() of the controller class or anywhere else?
Thanks,
Fei
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev