mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:00:46 +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
1fd5ce063a
commit
59b10a3b5e
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>
|
2005-04-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSPopupButton.m (-keyDown:) Removed unneeded code.
|
* Source/NSPopupButton.m (-keyDown:) Removed unneeded code.
|
||||||
|
|
|
@ -599,7 +599,6 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
|
||||||
NSDebugLog(@"Created template %@ -> %@",NSStringFromClass([self class]), className);
|
NSDebugLog(@"Created template %@ -> %@",NSStringFromClass([self class]), className);
|
||||||
ASSIGN(_object, object);
|
ASSIGN(_object, object);
|
||||||
ASSIGN(_className, className);
|
ASSIGN(_className, className);
|
||||||
NSAssert(![className isEqualToString: superClassName], NSInvalidArgumentException);
|
|
||||||
_superClass = NSClassFromString(superClassName);
|
_superClass = NSClassFromString(superClassName);
|
||||||
if(_superClass == nil)
|
if(_superClass == nil)
|
||||||
{
|
{
|
||||||
|
@ -951,9 +950,6 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
|
||||||
id template = nil;
|
id template = nil;
|
||||||
if(object != nil)
|
if(object != nil)
|
||||||
{
|
{
|
||||||
// NSData *objectData = nil;
|
|
||||||
// [archiver encodeRootObject: object];
|
|
||||||
// objectData = [archiver archiverData];
|
|
||||||
if ([object isKindOfClass: [NSWindow class]])
|
if ([object isKindOfClass: [NSWindow class]])
|
||||||
{
|
{
|
||||||
template = [[GSWindowTemplate alloc] initWithObject: object
|
template = [[GSWindowTemplate alloc] initWithObject: object
|
||||||
|
@ -990,8 +986,9 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
|
||||||
className: className
|
className: className
|
||||||
superClassName: superClassName];
|
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
|
template = [[GSObjectTemplate alloc] initWithObject: object
|
||||||
className: className
|
className: className
|
||||||
superClassName: superClassName];
|
superClassName: superClassName];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue