mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 06:00:44 +00:00
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:
parent
3414504517
commit
7914bf834d
3 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -428,7 +428,8 @@
|
|||
{
|
||||
[edited display];
|
||||
}
|
||||
|
||||
|
||||
|
||||
return NO;
|
||||
}
|
||||
return YES;
|
||||
|
|
Loading…
Reference in a new issue