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: Fri, 07 Oct 2005 12:32:00 +0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (windows-nt)

"Chris Vetter" <cbv@gmx.net> writes:

>> I think we should provide a (documented) mechanism to shut down an 
>> application for GNUstep.  This should probably be some message that the 
>> application will respond to like -powerOff, which will send a local 
>> NSWorkspaceWillPowerOffNotification within the receiving application and 
>> then call [NSApp terminate].

> Might be a good idea. However what if you (you in general) explicitly *want*
> your application to *ignore* NSWorkspaceWillPowerOffNotification (for
> whatever reason)?

[NSApp terminate] should be called anyway (at least according to Mac OS X
docs); observing NSWorkspaceWillPowerOffNotification is up to programmer.

> OTOH, why not just have (sort of a forced) observer for
> NSWorkspaceWillPowerOffNotification in NSApplication that just calls
> -terminate: on it's respective delegate?

In that case we should ensure that all user-defined observers are notified
before this one, which seems to be problematic.

-- 
                                                        With regards, Roman.





reply via email to

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