mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
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:
parent
b03b6af507
commit
34a2fbf832
3 changed files with 23 additions and 0 deletions
11
ChangeLog
11
ChangeLog
|
@ -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:]
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,4 +58,9 @@
|
|||
{
|
||||
return _gormStyleMask;
|
||||
}
|
||||
|
||||
- (BOOL) canBecomeMainWindow
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue