discuss-gnustep
[Top][All Lists]
Advanced

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

Re: GNUstep and session management


From: Markus Hitter
Subject: Re: GNUstep and session management
Date: Sat, 8 Oct 2005 11:11:51 +0200


Am 07.10.2005 um 22:58 schrieb Adrian Robert:

- (NSApplicationTerminateReply)applicationShouldTerminate: (NSApplication *)sender

Invoked from within the terminate: method immediately before the application terminates. sender is the NSApplication to be terminated.

Sounds reasonable to implement it in GNUstep this way as well. Simple logic, no additional methods required.

Regarding the notifications, it's unclear to me how they should be reliably helpful (in both, Cocoa and GNUstep). They are asynchronous regarding to direct and delegated methods, making it difficult to implement predictable behavior. Sending them from within -terminate: would require additional rounds through the run loop, right? Sending - terminate: from within the notifications prohibits feedback to the workspace manager.

Perhaps somebody could post a code snippet of how termination notifications can be used?


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/








reply via email to

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