Re: Performing actions before logging out
Re: Performing actions before logging out
- Subject: Re: Performing actions before logging out
- From: David Rio Vierra <email@hidden>
- Date: Tue, 31 Dec 2002 04:53:57 -1000
Have your object register for the
NSApplicationWillTerminateNotification, and handle it by calling your
cleanup method. That way, you won't need to call [NSApp terminate:nil]
since the user will always be doing it for you.
On Tuesday, December 31, 2002, at 04:43 AM, Arthur VIGAN wrote:
Hi,
I have an application which is a just a front-end to a background
process, but I have a little problem when I logout. To quit my
application I use a custom method which finishes by [NSApp
terminate:nil], and everything works fine. But when I logout, this
method is not called, and so the background processed isn't killed.
So my question is: how can I call my quitting method when a "logout
signal" is received?
Thanks in advance,
Arthur
_______________________________________________
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.