From c9f2a70cf9760c85e3bad9c7f1cf4dadfa4bf0a1 Mon Sep 17 00:00:00 2001 From: gcasa Date: Fri, 21 Nov 2008 06:07:52 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 ++++ Source/GSNibTemplates.m | 56 ----------------------------------------- 2 files changed, 5 insertions(+), 56 deletions(-) diff --git a/ChangeLog b/ChangeLog index a3a29aa26..43dcbe85c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-21 01:12-EST Gregory John Casamento + + * Source/GSNibTemplates.m: Remove calls to designated initializers + as per documentation. + 2008-11-20 Wolfgang Lux * Source/NSWindow.m (-miniaturize:): Revert the previous change diff --git a/Source/GSNibTemplates.m b/Source/GSNibTemplates.m index 7a251f5d4..fc6011b7e 100644 --- a/Source/GSNibTemplates.m +++ b/Source/GSNibTemplates.m @@ -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;