mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@5572 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8336146f60
commit
8c82a8d800
2 changed files with 15 additions and 10 deletions
8
Gorm.m
8
Gorm.m
|
@ -495,12 +495,8 @@ NSString *GormLinkPboardType = @"GormLinkPboardType";
|
|||
|
||||
- (void) stopConnecting
|
||||
{
|
||||
if ([self isConnecting])
|
||||
{
|
||||
[self displayConnectionBetween: nil and: nil];
|
||||
}
|
||||
connectDestination = nil;
|
||||
connectSource = nil;
|
||||
[self setConnectDestination: nil window: nil rect: NSZeroRect];
|
||||
[self setConnectSource: nil window: nil rect: NSZeroRect];
|
||||
isConnecting = NO;
|
||||
}
|
||||
|
||||
|
|
|
@ -212,6 +212,14 @@
|
|||
[panel orderFront: self];
|
||||
}
|
||||
}
|
||||
else if ([name isEqual: NSWindowDidResignKeyNotification] == YES)
|
||||
{
|
||||
if (current == 1)
|
||||
{
|
||||
/* FIXME - need to fix window focus handling for this to work */
|
||||
// [NSApp stopConnecting];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (id) init
|
||||
|
@ -305,6 +313,10 @@
|
|||
selector: @selector(handleNotification:)
|
||||
name: IBWillEndTestingInterfaceNotification
|
||||
object: nil];
|
||||
[nc addObserver: self
|
||||
selector: @selector(handleNotification:)
|
||||
name: NSWindowDidResignKeyNotification
|
||||
object: panel];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
@ -322,10 +334,7 @@
|
|||
[popup setNeedsDisplay: YES];
|
||||
[panel makeKeyAndOrderFront: self];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self setCurrentInspector: self];
|
||||
}
|
||||
[self setCurrentInspector: self];
|
||||
}
|
||||
|
||||
- (void) setCurrentInspector: (id)anObj
|
||||
|
|
Loading…
Reference in a new issue