Removed assertion and cleaned up comments.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21158 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-04-25 04:08:10 +00:00
parent 7084ee0b3b
commit 502aa73e64
2 changed files with 9 additions and 5 deletions

View file

@ -599,7 +599,6 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
NSDebugLog(@"Created template %@ -> %@",NSStringFromClass([self class]), className);
ASSIGN(_object, object);
ASSIGN(_className, className);
NSAssert(![className isEqualToString: superClassName], NSInvalidArgumentException);
_superClass = NSClassFromString(superClassName);
if(_superClass == nil)
{
@ -951,9 +950,6 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
id template = nil;
if(object != nil)
{
// NSData *objectData = nil;
// [archiver encodeRootObject: object];
// objectData = [archiver archiverData];
if ([object isKindOfClass: [NSWindow class]])
{
template = [[GSWindowTemplate alloc] initWithObject: object
@ -990,8 +986,9 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
className: className
superClassName: superClassName];
}
else if ([object isKindOfClass: [NSObject class]]) // for gui elements derived from NSObject
else if ([object isKindOfClass: [NSObject class]])
{
// for gui elements derived from NSObject
template = [[GSObjectTemplate alloc] initWithObject: object
className: className
superClassName: superClassName];