Correction for class editor.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20443 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-12-12 20:29:13 +00:00
parent 707a0260e7
commit b3e02df247
2 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2004-12-12 15:27 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassEditor.m: Corrected problem in -outlineView:
shouldEditTableColumn:item: to prevent editing of FirstResponder
name in the class editor.
2004-12-12 14:16 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassEditor.m: Implemented new methods.

View file

@ -226,8 +226,10 @@
}
else
{
// beep to inform the user of this error.
NSBeep();
// inform the user of this error.
NSRunAlertPanel(_(@"Cannot instantiate"),
_(@"FirstResponder cannot be instantiated."),
nil, nil, nil);
}
}
}
@ -612,7 +614,8 @@ shouldEditTableColumn: (NSTableColumn *)tableColumn
if (tableColumn == [gov outlineTableColumn])
{
NSDebugLog(@"outline table col");
if (![item isKindOfClass: [GormOutletActionHolder class]])
if (![item isKindOfClass: [GormOutletActionHolder class]] &&
![item isEqualToString: @"FirstResponder"])
{
result = [classManager isCustomClass: item];
[self editClass];