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/
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep