mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 22:27:38 +00:00
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:
parent
d1bbe54ace
commit
8298410a10
28 changed files with 728 additions and 709 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue