git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@5572 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-12-18 06:40:48 +00:00
parent 8336146f60
commit 8c82a8d800
2 changed files with 15 additions and 10 deletions

8
Gorm.m
View file

@ -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;
}

View file

@ -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