mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Inspector now shows outlet/action counts.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20439 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e5565e59aa
commit
7d1020708d
4 changed files with 21 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-12-11 00:51 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormClassInspector.m: Added code in setObject: to show the
|
||||
total outlets and actions in the class.
|
||||
* Resources/GormClassInspector.gorm: Swapped the outlet/action
|
||||
tabs.
|
||||
|
||||
2004-12-11 00:21 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormDocument.m: in handleNotification: changed the condition
|
||||
|
|
|
@ -523,9 +523,23 @@ objectValueForTableColumn: (NSTableColumn *)tc
|
|||
|
||||
- (void) setObject: (id)anObject
|
||||
{
|
||||
int outletsCount = 0;
|
||||
int actionsCount = 0;
|
||||
NSTabViewItem *item = nil;
|
||||
|
||||
[super setObject: anObject];
|
||||
ASSIGN(classManager, [(Gorm *)NSApp classManager]);
|
||||
ASSIGN(currentClass, [object className]);
|
||||
|
||||
outletsCount = [[classManager allOutletsForClassNamed: currentClass] count];
|
||||
actionsCount = [[classManager allActionsForClassNamed: currentClass] count];
|
||||
|
||||
item = [tabView tabViewItemAtIndex: 1]; // actions;
|
||||
[item setLabel: [NSString stringWithFormat: @"Actions (%d)",actionsCount]];
|
||||
item = [tabView tabViewItemAtIndex: 0]; // outlets;
|
||||
[item setLabel: [NSString stringWithFormat: @"Outlets (%d)",outletsCount]];
|
||||
[tabView setNeedsDisplay: YES];
|
||||
|
||||
[self _refreshView];
|
||||
}
|
||||
|
||||
|
|
|
@ -3,13 +3,9 @@
|
|||
FirstResponder = {
|
||||
Actions = (
|
||||
"changeFont:",
|
||||
"deleteWordBackward:",
|
||||
"moveDown:",
|
||||
"moveWordForward:",
|
||||
"orderFrontFontPanel:",
|
||||
"raiseBaseline:",
|
||||
"selectParagraph:",
|
||||
"takeObjectValueFrom:",
|
||||
"unscript:",
|
||||
"removeOutlet:",
|
||||
"addOutlet:",
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue