mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
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:
parent
707a0260e7
commit
b3e02df247
2 changed files with 12 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue