"Chris Vetter" <[EMAIL PROTECTED]> writes: > They usually offer something like "Log out" -- sending a "power > off" note would be the only *clean* way of letting other applications know > that the user is about to log out (ie. terminate the workspace, which would > normally result in 'killing' everything else unless you still would have to > 'shut down' the window manager) > > Or, again, use -launchedApplications, then iterate through the array and try > sending a termination.
Mac OS X seems to do both. http://developer.apple.com/releasenotes/Cocoa/AppKitOlderNotes.html says: Applications that need to distinguish between a termination associated with the end of a login session and a termination through a Quit (or Exit) command could do this by registering for the NSWorkspaceWillPowerOffNotification. This notification is posted prior to calling applicationShouldTerminate:. -- With regards, Roman. _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
