Minor correction to the code which attaches objects to the document.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@18411 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-01-14 06:37:54 +00:00
parent 3414504517
commit 7914bf834d
3 changed files with 14 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2004-01-14 01:42 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: attachObject:toParent: when the connection
contained in the object which is attached is nil, use the
parent. This corrects a minor issue with greyed out menu entries.
2004-01-11 13:08 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: Removed awakeFromDocument code and moved it to

View file

@ -324,7 +324,10 @@ static NSImage *classesImage = nil;
if(destination == nil)
{
destination = firstResponder;
if(aParent == nil)
destination = firstResponder;
else
destination = aParent;
}
// build the connection
@ -1906,7 +1909,7 @@ static NSImage *classesImage = nil;
GSNibContainer *c;
NSEnumerator *enumerator;
id <IBConnectors> con;
NSString *ownerClass, *key;
NSString *ownerClass; // , *key;
NSFileManager *mgr = [NSFileManager defaultManager];
BOOL isDir = NO;
NSDirectoryEnumerator *dirEnumerator;
@ -2756,7 +2759,7 @@ static NSImage *classesImage = nil;
[archiver encodeClassName: @"GormCustomView"
intoClassName: @"GSCustomView"];
[archiver encodeClassName: @"GormNSMenu"
intoClassName: @"NSMenu"];
intoClassName: @"NSMenu"];
[archiver encodeClassName: @"GormNSWindow"
intoClassName: @"NSWindow"];
[archiver encodeClassName: @"GormNSPanel"

View file

@ -428,7 +428,8 @@
{
[edited display];
}
return NO;
}
return YES;