Change to prevent subclasses of FirstResponder from being added.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20457 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-12-15 02:33:17 +00:00
parent 4f20e420d3
commit 84ef527ee2
2 changed files with 12 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2004-12-14 21:26 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassManager.m: -addClassNamed:withSuperClassNamed:
actions:outlets:isCustom: added check for superclass of
"FirstResponder".
2004-12-14 21:04 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassEditor.m: Added code in pasteInSelection to prevent
@ -20,9 +26,9 @@
* GormClassManager.h: Made variable names conform a little more to
standard practice. Also changed the declarations of "NSArray*" to
"NSArray *".
* GormClassManager.m: Corrected addClass:withSuperClassNamed:actions:
outlets: to eliminate duplicate actions, outlets from the class being
added if they exist on the superclass.
* GormClassManager.m: Corrected addClassNamed:withSuperClassNamed:
actions:outlets:isCustom: to eliminate duplicate actions, outlets
from the class being added if they exist on the superclass.
* Gorm.m: Changed coercion to id<IBSelectionEditors,IBEditors) in
the methods which handle copy, paste, delete, etc.
* TODO: Added more items scheduled for 1.0 release.

View file

@ -236,8 +236,9 @@
// We make an autoreleased copy of all of the inputs. This prevents changes
// to the original objects from reflecting here. GJC
if ([superClassNameCopy isEqualToString: @"NSObject"]
|| [classInformation objectForKey: superClassNameCopy] != nil)
if ([superClassNameCopy isEqualToString: @"NSObject"] ||
([classInformation objectForKey: superClassNameCopy] != nil &&
[superClassNameCopy isEqualToString: @"FirstResponder"] == NO))
{
NSMutableDictionary *classInfo;