• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Performing actions before logging out
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Performing actions before logging out (From: Arthur VIGAN <email@hidden>)

  • Prev by Date: Performing actions before logging out
  • Next by Date: Re: the best way to implement a document based app that also manages documents?
  • Previous by thread: Performing actions before logging out
  • Next by thread: select Button
  • Index(es):
    • Date
    • Thread