[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSApplication, slight bug
From: |
Jeff Teunissen |
Subject: |
NSApplication, slight bug |
Date: |
Thu, 06 Jun 2002 04:21:23 -0400 |
Attached is a one-line patch to NSApplication.m, which makes the
application send -applicationShouldTerminate: messages from self, instead
of from the sender of -terminate:.
-applicationShouldTerminate: messages should only be sent by NSApplication
objects. This behavior causes problems with objects that sent messages
back to the app, instead of sending to NSApp (such as TextEdit).
I'm also looking into a problem with the text network which does not allow
applications to handle their own layout managers, text containers, and
text views. (this is also causing TextEdit to fail, when trying to edit)
--
| Jeff Teunissen -=- Pres., Dusk To Dawn Computing -=- deek @ d2dc.net
| GPG: 1024D/9840105A 7102 808A 7733 C2F3 097B 161B 9222 DAB8 9840 105A
| Core developer, The QuakeForge Project http://www.quakeforge.net/
| Specializing in Debian GNU/Linux http://www.d2dc.net/~deek/
Index: gui/Source/NSApplication.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSApplication.m,v
retrieving revision 1.210
diff -u -r1.210 NSApplication.m
--- gui/Source/NSApplication.m 11 Apr 2002 23:11:05 -0000 1.210
+++ gui/Source/NSApplication.m 6 Jun 2002 08:10:51 -0000
@@ -2262,7 +2262,7 @@
if ([_delegate respondsToSelector: @selector(applicationShouldTerminate:)])
{
- shouldTerminate = [_delegate applicationShouldTerminate: sender];
+ shouldTerminate = [_delegate applicationShouldTerminate: self];
}
else
{
- NSApplication, slight bug,
Jeff Teunissen <=