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 - (void) stopConnecting
{ {
if ([self isConnecting]) [self setConnectDestination: nil window: nil rect: NSZeroRect];
{ [self setConnectSource: nil window: nil rect: NSZeroRect];
[self displayConnectionBetween: nil and: nil];
}
connectDestination = nil;
connectSource = nil;
isConnecting = NO; isConnecting = NO;
} }

View file

@ -212,6 +212,14 @@
[panel orderFront: self]; [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 - (id) init
@ -305,6 +313,10 @@
selector: @selector(handleNotification:) selector: @selector(handleNotification:)
name: IBWillEndTestingInterfaceNotification name: IBWillEndTestingInterfaceNotification
object: nil]; object: nil];
[nc addObserver: self
selector: @selector(handleNotification:)
name: NSWindowDidResignKeyNotification
object: panel];
return self; return self;
} }
@ -322,10 +334,7 @@
[popup setNeedsDisplay: YES]; [popup setNeedsDisplay: YES];
[panel makeKeyAndOrderFront: self]; [panel makeKeyAndOrderFront: self];
} }
else [self setCurrentInspector: self];
{
[self setCurrentInspector: self];
}
} }
- (void) setCurrentInspector: (id)anObj - (void) setCurrentInspector: (id)anObj