Re: NSWorkspaceWillPowerOffNotification (worse than description forthcoming)
Re: NSWorkspaceWillPowerOffNotification (worse than description forthcoming)
- Subject: Re: NSWorkspaceWillPowerOffNotification (worse than description forthcoming)
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 17 Oct 2001 18:35:19 +0200
On mercredi, octobre 17, 2001, at 06:40 , Douglas Davidson wrote:
On Wednesday, October 17, 2001, at 04:08 AM, Stiphane Sudre wrote:
In the NSWorkSpace documentation:
NSWorkspaceWillPowerOffNotification
Posted when the user has requested a logout or that the machine be
powered off. Currently unavailable.
Is it still unavailable in 10.1 ?
I believe that the current state of affairs is that when logout/power
off occurs, your application is be asked to quit, but we do not make a
distinction between this and other requests to quit (e.g. from an
AppleScript). The NSWorkspaceWillPowerOffNotification is currently
delivered in either case.
Nice.
Because the NSApplication documentation is explaining that on logout,
you don't receive a applicationWillTerminate "delegated" message and
that the NSWorkspaceWillPowerOffNotification should be taken into
account.