Re: Quit Application doesn't send window close methods
Re: Quit Application doesn't send window close methods
- Subject: Re: Quit Application doesn't send window close methods
- From: David Rio Vierra <email@hidden>
- Date: Tue, 31 Dec 2002 20:51:40 -1000
Well, you have two ways of doing this. In your app controller, which
is a delegate of NSApp, implement -applicationWillTerminate: and do
cleanup code there. You may also register some of your objects for the
NSApplicationWillTerminateNotification so they can do their own cleanup.
- Rio
On Tuesday, December 31, 2002, at 04:47 PM, Ted Lowery wrote:
Hi all-
I've noticed when I quit my application, I don't get any delegate
messages, things like windowShouldClose, windowWillClose or
windowDidResignKey.
What is the right way to trap for an application quitting so I can
clean up? If I close the window first, clean up happens, as I
override windowDidResignKey method.
Thanks, Ted
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.