Fix for window focus, and a modification which prevents objects with preset connections from retaining them after they're added to the document.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@18542 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-02-05 04:20:43 +00:00
parent b03b6af507
commit 34a2fbf832
3 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,14 @@
2004-02-04 23:13 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: -[GormDocument attachObject:toParent:]
added code to reset the target/action of an object after
it's connection has been added to the connections list.
Since the connections are restored when the .gorm is loaded,
this prevents the target/action from being persisted when
it's not going to get used anyway.
* Palettes/1Windows/GormNSWindow.m: Added -(BOOL)canBecomeMainWindow
implementation to return NO. (suggested by Jeff Tuniessen)
2004-02-01 18:21 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: -[GormDocument attachObject:toParent:]

View file

@ -355,6 +355,13 @@ static NSImage *classesImage = nil;
[self addConnector: (id<IBConnectors>)con];
}
// destroy the connection in the object to
// prevent any conflict. The connections are restored when the
// .gorm is loaded, so there's no need for it anymore.
[anObject setTarget: nil];
[anObject setAction: NULL];
// release the connection.
RELEASE(con);
}
}

View file

@ -58,4 +58,9 @@
{
return _gormStyleMask;
}
- (BOOL) canBecomeMainWindow
{
return NO;
}
@end