On Thu, 06 Oct 2005 10:50:22 +0200, Saso wrote:
Quoting Roman Belenov <rbelenov@yandex.ru>:
Is there a fallback for applications that don't explicitly observe this
notification (like passing terminate: to NSApplication instance) ? What
about OpenStep or Mac OS X - do they have something like that ?
In theory, when the workspace (or session manager) sends
NSWorkspaceWillPowerOffNotification, every running application (and thus
also it's app delegate object) is sent -applicationSholdTerminate to find
out whether to proceed. However, I haven't used it on GNUstep yet, so no
clue as to how reliable this is.
I actually played around with NSWorkspaceWillPowerOffNotification last night
by posting this notification in one application, explicitly listening for it
in another and a third without a listener.
Neither of the three applications got a -applicationShouldTerminate: