discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstep and session management


From: Roman Belenov
Subject: Re: GNUstep and session management
Date: Thu, 06 Oct 2005 18:28:57 +0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (windows-nt)

"Chris Vetter" <cbv@gmx.net> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]