discuss-gnustep
[Top][All Lists]
Advanced

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

Re: GNUstep and session management


From: Chris Vetter
Subject: Re: GNUstep and session management
Date: Thu, 6 Oct 2005 12:36:47 +0200 (MEST)

On Thu, 06 Oct 2005 08:58:44 +0000, Richard wrote:
> On 2005-10-06 07:53:48 +0000 Roman Belenov <rbelenov@yandex.ru> wrote:
> > 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 ?
> Not that I know of ... observing the notification seems to be the
> 'graceful' way to shut down.
> Internally, an application receiving a power-off notification would
> usually call its own -terminate method to shut down, but you can't
> generally call that from outside the application.  So if an application
> ignores the power off notification, I guess you really have to  use the
> kill() system call to stop it in a less graceful manner.

What about using -launchedApplications in NSWorkspace, then step through
each item of the array and send an explicit -terminate: to it?

-- 
Chris

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner




reply via email to

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