Merge 0.6.6 branch into main.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7188 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2000-08-07 22:06:04 +00:00
parent d1bbe54ace
commit 8298410a10
28 changed files with 728 additions and 709 deletions

View file

@ -76,10 +76,19 @@ static NSString *GSWorkspaceNotification = @"GSWorkspaceNotification";
if (self != nil)
{
remote = RETAIN([NSDistributedNotificationCenter defaultCenter]);
[remote addObserver: self
selector: @selector(_handleRemoteNotification:)
name: nil
object: GSWorkspaceNotification];
NS_DURING
[remote addObserver: self
selector: @selector(_handleRemoteNotification:)
name: nil
object: GSWorkspaceNotification];
NS_HANDLER
NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
if ([defs boolForKey: @"GSLogWorkspaceTimeout"])
NSLog(@"NSWorkspace caught exception %@: %@",
[localException name], [localException reason]);
else
[localException raise];
NS_ENDHANDLER
}
return self;
}
@ -96,7 +105,16 @@ static NSString *GSWorkspaceNotification = @"GSWorkspaceNotification";
rem = [NSNotification notificationWithName: [aNotification name]
object: GSWorkspaceNotification
userInfo: [aNotification userInfo]];
[remote postNotification: rem];
NS_DURING
[remote postNotification: rem];
NS_HANDLER
NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
if ([defs boolForKey: @"GSLogWorkspaceTimeout"])
NSLog(@"NSWorkspace caught exception %@: %@",
[localException name], [localException reason]);
else
[localException raise];
NS_ENDHANDLER
}
- (void) postNotificationName: (NSString*)name