Get the inspectors showing.

Still can't change them via the pop-up menu, though.
This commit is contained in:
Bill Currie 2010-09-14 23:10:20 +09:00
parent 3af9f1b9f2
commit 2e30db9888
3 changed files with 5 additions and 4 deletions

View file

@ -64,7 +64,6 @@ extern id inspcontrol_i;
id itemHelp_i; // docs
}
-awakeFromNib;
-changeInspector:sender;
-changeInspectorTo:(insp_e) which;
-(insp_e) getCurrentInspector;

View file

@ -1,3 +1,4 @@
#include "QF/sys.h"
#include "InspectorControl.h"
@ -15,7 +16,8 @@ id inspcontrol_i;
@implementation InspectorControl
-awakeFromNib {
-(void)awakeFromNib
{
inspcontrol_i = self;
currentInspectorType = -1;
@ -66,12 +68,11 @@ id inspcontrol_i;
[inspectorView_i setAutoresizesSubviews:YES];
inspectorSubview_i =[contentList objectAtIndex:i_project];
[inspectorView_i addSubview:inspectorSubview_i];
currentInspectorType = -1;
[self changeInspectorTo:i_project];
return self;
}
@ -84,6 +85,7 @@ id inspcontrol_i;
id cell;
cell =[sender selectedCell];
Sys_Printf ("%p %d", cell, (int)[cell tag]);
[self changeInspectorTo:[cell tag]];
return self;
}