From fc383e05d21a1eeb10477c3c32b7cfcb8c32f8b9 Mon Sep 17 00:00:00 2001 From: Adam Fedor Date: Tue, 8 May 2001 02:42:45 +0000 Subject: [PATCH] Check for sel. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9895 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 11 +++++++++++ Source/NSApplication.m | 5 +++++ Source/NSBundleAdditions.m | 2 +- Source/tiff.m | 1 - 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 62eef99a1..7cd97ef08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2001-05-07 Adam Fedor + + * Source/NSApplication.m (_NSAppKitUncaughtExceptionHandler): Abort + when debug buttons is pressed (so gdb can do a bt). + +2001-05-06 Adam Fedor + + * Source/NSBundleAdditions.m ([NSNibOutletConnector + -establishConnection]): Test for non-NULL sel (patch suggested by + Raphael Sebbe ). + 2000-05-08 Fred Kiefer * Headers/gnustep/gui/NSTabViewItem.h diff --git a/Source/NSApplication.m b/Source/NSApplication.m index 19bb3fdff..3db8ac2f6 100644 --- a/Source/NSApplication.m +++ b/Source/NSApplication.m @@ -121,6 +121,11 @@ _NSAppKitUncaughtExceptionHandler (NSException *exception) library exception handler */ [exception raise]; } + else if (retVal == NSAlertOther) + { + /* Debug button: abort so we can trace the error in gdb */ + abort(); + } /* The user said to go on - more fun I guess - turn the AppKit exception handler on again */ diff --git a/Source/NSBundleAdditions.m b/Source/NSBundleAdditions.m index 27b2720af..786ad3e5a 100644 --- a/Source/NSBundleAdditions.m +++ b/Source/NSBundleAdditions.m @@ -150,7 +150,7 @@ [_tag capitalizedString]]; sel = NSSelectorFromString(selName); - if ([_src respondsToSelector: sel]) + if (sel && [_src respondsToSelector: sel]) { [_src performSelector: sel withObject: _dst]; } diff --git a/Source/tiff.m b/Source/tiff.m index aa33d1dbb..60c39b726 100644 --- a/Source/tiff.m +++ b/Source/tiff.m @@ -68,7 +68,6 @@ #ifndef __WIN32__ #include /* for L_SET, etc definitions */ #endif /* !__WIN32__ */ -#include typedef struct { char* data;