This is Inspector.m in view mode; [Download] [Up]
/*
File Inspector.m
The inspector allows the user to adjust the type of search as well as the various hueristics used to control it.
*/
#import <appkit/appkit.h>
#import <stdio.h>
#import "Inspector.h"
#import "StopWatch.h"
/* 行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行  */
@implementation Inspector
- (int) getStateType			{	return [stateType  selectedTag];			  }
- (BOOL) getOption: (int) i		{	return [[options findCellWithTag: i] state];  }
- getWatch						{	return stopWatch;							  }
- getTimeCell					{	return time;								  }
/* 行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行  */
- init
{
	[super  init];
	
	color[0] = NX_COLORWHITE;
	color[1] = NX_COLORBLACK;
	color[2] = NX_COLORBLUE;
	color[3] = NX_COLORBLACK;
	color[4] = NX_COLORYELLOW;
	color[5] = NX_COLORRED;
	
	return self;
}
/* 行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行行  */
- (squareColor) getColor: (int) i
{
	squareColor		theColor;
	
	theColor.background = color[i * 2];
	theColor.text = color[i * 2 + 1];
	
	return theColor;
}
- takeColor: sender
{
	color[[sender  tag]] = [sender  color];
	return self;
}
- showTime
{
	[time  setFloatingPointFormat: NO  left: 6  right: 2];
	[time  setFloatValue: [stopWatch  getTime]];
	
	return self;
}
@endThese are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.