mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 12:01:16 +00:00
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:
parent
5298a0ee49
commit
f112aa80be
2 changed files with 28 additions and 0 deletions
|
@ -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>
|
2006-06-17 20:39 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* GormCore/GormNibWrapperLoader.m: Remove resizing change from
|
* GormCore/GormNibWrapperLoader.m: Remove resizing change from
|
||||||
|
|
|
@ -48,6 +48,17 @@
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface NSView (NibLoaderPrivate)
|
||||||
|
- (void) setSuperview: (NSView *)view;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation NSView (NibLoaderPrivate)
|
||||||
|
- (void) setSuperview: (NSView *)view
|
||||||
|
{
|
||||||
|
ASSIGN(_super_view, view);
|
||||||
|
}
|
||||||
|
@end
|
||||||
|
|
||||||
@interface GormNibWrapperLoader : GormWrapperLoader
|
@interface GormNibWrapperLoader : GormWrapperLoader
|
||||||
{
|
{
|
||||||
NSIBObjectData *container;
|
NSIBObjectData *container;
|
||||||
|
@ -306,6 +317,12 @@
|
||||||
[o setLabel: (id)newTag];
|
[o setLabel: (id)newTag];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// skip any help connectors...
|
||||||
|
if([o isKindOfClass: [NSIBHelpConnector class]])
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
[document addConnector: o];
|
[document addConnector: o];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -368,6 +385,12 @@
|
||||||
[obj setAction: NULL];
|
[obj setAction: NULL];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// okay, this might be a kludge...
|
||||||
|
if([obj isKindOfClass: [NSView class]])
|
||||||
|
{
|
||||||
|
[obj setSuperview: nil];
|
||||||
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in a new issue