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 17:17:26 +0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (windows-nt)

Richard Frith-Macdonald <richard@brainstorm.co.uk> writes:

> I have never seen anything in the MacOS-X documentation describing how the
> session manager tells the application to shut down other than the
> NSWorkspaceWillPowerOffNotification.  It is clear that the session manager
> sends thay notification to each application to tell it to shut down, but it
> is not clear what happens then.
> Does NSApp observe the notification and call its own -terminate method when
> it receives it, or does it depend on the applicaton programmer to write code
> to observe the notification and call -terminate?

Aforementioned documentation explicitly mentions logout, restart and shutdown
as possible cases of application termination, so the following text (stating
that NSDocumentController handles graceful termination itself and listing the
code for manual handling) should be applicable to these situations. So it
seems that applicationShouldTerminate: is called without any help from
programmer, either by framework (by observing
NSWorkspaceWillPowerOffNotification) or by session manager (by iterating over
the list of running applications after sending
NSWorkspaceWillPowerOffNotification).

-- 
                                                        With regards, Roman.





reply via email to

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