ftp.nice.ch/pub/next/tools/performance/KPerfMon.1.3C.s.tar.gz#/KPerfMon/AppDelegate.h

This is AppDelegate.h in view mode; [Download] [Up]

/* Generated by Interface Builder */

#import <objc/Object.h>

extern float pollInterval;

@interface AppDelegate:Object
{
    id  monitor;
    DPSTimedEntry stepEntry;
    DPSTimedEntry flipEntry;
    int tag;
    id  infoPanel;
    float flipInterval;
    BOOL displayCpu, displayDisk, displayMemory, displayNetwork;
    char displayInfo[10];
    id pollText;
    id pollSlider;
    id flipText;
    id flipSlider;
    id cpuSwitch;
    id diskSwitch;
    id memorySwitch;
    id networkSwitch;

	id cpuSystemColor;
	id cpuUserColor;
	id cpuNiceColor;
	id diskColor;
	id diskPageinColor;
	id diskPageoutColor;
	id memInactiveColor;
	id memActiveColor;
	id memWiredColor;
	id netInColor;
	id netOutColor;
	id netCollisionColor;
	id backgroundColor;
}

/****
***** Delegation methods called by the Application object.
****/
- appWillInit:sender;
- appDidInit:sender;
- appWillTerminate:sender;

/****
***** New Methods
****/
- info:sender;
- flipMonitor;
- setPollInterval:sender;
- setFlipInterval:sender;
- setDisplayCpu:sender;
- setDisplayDisk:sender;
- setDisplayMemory:sender;
- setDisplayNetwork:sender;
- saveDisplayInfo;

/****
***** Color Methods
****/
- changeColor:sender;
- readColorDefaults;  // read and propagate ALL color defaults
- writeColorDefaults; // write ALL color defaults, then call -readColorDefaults

/****
***** These two methods are part of a completely bogus hacque to support an
***** even more bogus means of communication between the Monitor class and
***** the Application's delegate.
****/
- selectedCell;
- (int)tag;

@end

/**
*** Timed ENtry Functions
**/
void _step(DPSTimedEntry teNumber,double now,id monitor);
void _flip(DPSTimedEntry teNumber,double now,id self);

#define COLORSTRINGLENGTH 1024 
#define WHITE_STRING	"040B747970656473747265616D8103A284016341840173FE93FE"
#define BLACK_STRING    "040B747970656473747265616D8103A2840163418401730093FE"
#define BLUE_STRING	\
	"040B747970656473747265616D8103A28401634084037373730000FE840173FE"
#define YELLOW_STRING	\
	"040B747970656473747265616D8103A2840163408403737373FEFE00840173FE"
#define RED_STRING	\
	"040B747970656473747265616D8103A2840163408403737373FE0000840173FE"
#define MAGENTA_STRING	\
	"040B747970656473747265616D8103A2840163408403737373FE00FE840173FE"
#define CYAN_STRING	\
	"040B747970656473747265616D8103A2840163408403737373FE00FE840173FE"

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.