mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
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:
parent
7084ee0b3b
commit
502aa73e64
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-04-25 00:02 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/GSNibTemplates.m: [GSClassSwapper initWithObject:
|
||||
className:superClassName:] removed assertion which prevents
|
||||
using the same class name for both arguments. Also cleaned
|
||||
up some commented out code.
|
||||
|
||||
2005-04-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSPopupButton.m (-keyDown:) Removed unneeded code.
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue