Code to remove NSIBHelpConnector instances from the connections array.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23081 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-06-18 18:41:28 +00:00
parent 5298a0ee49
commit f112aa80be
2 changed files with 28 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-06-18 14:40 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormNibWrapperLoader.m: Added filter to remove
NSIBHelpConnector instances from the connections array.
2006-06-17 20:39 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormNibWrapperLoader.m: Remove resizing change from

View file

@ -48,6 +48,17 @@
}
@end
@interface NSView (NibLoaderPrivate)
- (void) setSuperview: (NSView *)view;
@end
@implementation NSView (NibLoaderPrivate)
- (void) setSuperview: (NSView *)view
{
ASSIGN(_super_view, view);
}
@end
@interface GormNibWrapperLoader : GormWrapperLoader
{
NSIBObjectData *container;
@ -306,6 +317,12 @@
[o setLabel: (id)newTag];
}
}
// skip any help connectors...
if([o isKindOfClass: [NSIBHelpConnector class]])
{
continue;
}
[document addConnector: o];
}
@ -368,6 +385,12 @@
[obj setAction: NULL];
}
// okay, this might be a kludge...
if([obj isKindOfClass: [NSView class]])
{
[obj setSuperview: nil];
}
return obj;
}
@end