Article View: comp.sys.next.programmer
Article #122Re: appWillTerminate: -- I don't get it!
From: Gary Ritchie
Date: Tue, 03 Nov 1992 16:52
Date: Tue, 03 Nov 1992 16:52
25 lines
1579 bytes
1579 bytes
In article <1992Nov3.082904.1849@mouthers.nwnexus.wa.com> (slugg jello) writes: > My app's delegate doesn't receive the appWillTerminate: method when WorkSpace terminates the app upon user logout. This is a drag because my app cannot, in that case, save its default settings. The app does receive the method in other situations such as when the user quits the app. When the user logs out or power down the machine, the message sent to the Application delegate is: app:powerOffIn:andSave:. Note that when you are handling this method (ie. giving the user the option to save his work), you probably shouldn't give them the Cancel option in any panels you display (like you would if they were just quitting the application). NeXT violates this in some of their own applications, such as Edit. For a good time, start Edit, create a new document, type something in the document (don't save it), log out, and hit the cancel button in the panel that Edit gives you. --- Gary Ritchie gary@uaneuro.uah.ualberta.ca
Technical Details
Message-ID:
<1992Nov3.165206.11364@kakwa.ucs.ualberta.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!destroyer!cs.ubc.ca!alberta!kakwa.ucs.ualberta.ca!newsReferences:
<1992Nov3.082904.1849@mouthers.nwnexus.wa.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!cs.ubc.ca!alberta!kakwa.ucs.ualberta.ca!news From: gary@nshade.uah.ualberta.ca (Gary Ritchie) Subject: Re: appWillTerminate: -- I don't get it! Message-ID: <1992Nov3.165206.11364@kakwa.ucs.ualberta.ca> Sender: news@kakwa.ucs.ualberta.ca Nntp-Posting-Host: nshade.uah.ualberta.ca Organization: University Of Alberta, Edmonton Canada References: <1992Nov3.082904.1849@mouthers.nwnexus.wa.com> Date: Tue, 3 Nov 1992 16:52:06 GMT Lines: 25