Don't set uncaught except handler until after init

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9125 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-02-12 04:48:22 +00:00
parent 82da0b3811
commit 0e78dabbf9
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2001-02-11 Adam Fedor <fedor@gnu.org>
* Source/NSApplication.m ([NSApplication -init]): Don't set our
uncaught exception handler until after the back-end is initialized
(at least).
2001-02-09 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSApplication.m: NSAppIconView modified to support the

View file

@ -365,9 +365,6 @@ static NSCell* tileCell = nil;
/* Save the base library exception handler */
defaultUncaughtExceptionHandler = NSGetUncaughtExceptionHandler ();
/* Set a new exception handler for the gui library */
NSSetUncaughtExceptionHandler (_NSAppKitUncaughtExceptionHandler);
/* Cache the NSAutoreleasePool class */
arpClass = [NSAutoreleasePool class];
nc = [NSNotificationCenter defaultCenter];
@ -437,6 +434,9 @@ static NSCell* tileCell = nil;
//_main_menu = nil;
_windows_need_update = YES;
/* Set a new exception handler for the gui library */
NSSetUncaughtExceptionHandler (_NSAppKitUncaughtExceptionHandler);
_listener = [GSServicesManager newWithApplication: self];
/* NSEvent doesn't use -init so we use +alloc instead of +new */