Resolve connection dest/src when pointing to a NSWindowTemplate.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23154 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-07-10 03:28:10 +00:00
parent d77a7fa239
commit 7d5e68a2c0
2 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-07-09 23:27 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormNibWrapperLoader.m: Replace the destination or
source of any connection which connects to an NSWindowTemplate object.
2006-07-09 17:59 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormViewEditor.m: Correction for issue which was causing

View file

@ -258,6 +258,7 @@
while((o = [en nextObject]) != nil)
{
id dest = [o destination];
id src = [o source];
if([o isKindOfClass: [NSNibControlConnector class]])
{
NSString *tag = [o label];
@ -281,6 +282,19 @@
}
}
// check src/dest for window template...
if([src isKindOfClass: [NSWindowTemplate class]])
{
id win = [src realObject];
[o setSource: win];
}
else if([dest isKindOfClass: [NSWindowTemplate class]])
{
id win = [dest realObject];
[o setDestination: win];
}
// skip any help connectors...
if([o isKindOfClass: [NSIBHelpConnector class]])
{