* Source/GSNibTemplates.m: Remove calls to designated initializers

as per documentation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27104 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-11-21 06:07:52 +00:00
parent 2bedbf4129
commit cfbf81636e
2 changed files with 5 additions and 56 deletions

View file

@ -1,3 +1,8 @@
2008-11-21 01:12-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSNibTemplates.m: Remove calls to designated initializers
as per documentation.
2008-11-20 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSWindow.m (-miniaturize:): Revert the previous change

View file

@ -963,15 +963,6 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
id obj = [super initWithCoder: coder];
if (obj != nil)
{
if ([self shouldSwapClass])
{
if (GSGetMethod([obj class],@selector(initWithFrame:), YES, NO) != NULL
&& ![_className isEqualToString: NSStringFromClass(_superClass)])
{
NSRect theFrame = [obj frame];
obj = [obj initWithFrame: theFrame];
}
}
RELEASE(self);
}
return obj;
@ -993,15 +984,6 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
id obj = [super initWithCoder: coder];
if (obj != nil)
{
if ([self shouldSwapClass])
{
if (GSGetMethod([obj class],@selector(initWithFrame:), YES, NO) != NULL
&& ![_className isEqualToString: NSStringFromClass(_superClass)])
{
NSRect theFrame = [obj frame];
obj = [obj initWithFrame: theFrame];
}
}
RELEASE(self);
}
return obj;
@ -1023,17 +1005,6 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
id obj = [super initWithCoder: coder];
if (obj != nil)
{
if ([self shouldSwapClass])
{
if (GSGetMethod([obj class],@selector(initWithFrame:textContainer:), YES, NO) != NULL
&& ![_className isEqualToString: NSStringFromClass(_superClass)])
{
NSRect theFrame = [obj frame];
id textContainer = [obj textContainer];
obj = [obj initWithFrame: theFrame
textContainer: textContainer];
}
}
RELEASE(self);
}
return obj;
@ -1055,15 +1026,6 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
id obj = [super initWithCoder: coder];
if (obj != nil)
{
if ([self shouldSwapClass])
{
if (GSGetMethod([obj class],@selector(initWithTitle:), YES, NO) != NULL
&& ![_className isEqualToString: NSStringFromClass(_superClass)])
{
NSString *theTitle = [obj title];
obj = [obj initWithTitle: theTitle];
}
}
RELEASE(self);
}
return obj;
@ -1086,16 +1048,6 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
id obj = [super initWithCoder: coder];
if (obj != nil)
{
/*
if ([self shouldSwapClass])
{
if (GSGetMethod([obj class],@selector(initWithFrame:), YES, NO) != NULL)
{
NSRect theFrame = [obj frame];
obj = [obj initWithFrame: theFrame];
}
}
*/
RELEASE(self);
}
return obj;
@ -1116,14 +1068,6 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
id obj = [super initWithCoder: coder];
if (obj != nil)
{
if ([self shouldSwapClass])
{
if (GSGetMethod([obj class],@selector(init), YES, NO) != NULL
&& ![_className isEqualToString: NSStringFromClass(_superClass)])
{
obj = [self init];
}
}
RELEASE(self);
}
return obj;