ftp.nice.ch/pub/next/developer/resources/classes/Gauges.1.0.s.tar.gz#/Gauges

BarGauge.h
[View BarGauge.h] 
BarGauge.m
[View BarGauge.m] 
DialGauge.h
[View DialGauge.h] 
DialGauge.m
[View DialGauge.m] 
Gauge.h
[View Gauge.h] 
Gauge.m
[View Gauge.m] 
GaugeDemo.iconheader
 

GaugeDemo.nib


 
GaugeDemoIcon.tiff
 
GaugeDemo_main.m
[View GaugeDemo_main.m] 
IB.proj
 
Makefile
 
README
 
TestObject.h
[View TestObject.h] 
TestObject.m
[View TestObject.m] 
ValuatorGauge.h
[View ValuatorGauge.h] 
ValuatorGauge.m
[View ValuatorGauge.m] 

README

This is the begining of a general purpose gauges package.

Revision:
	1.0	Made subclass of Control and now supports target action on over/underflow
		Added read:/write:/awake methods.  (Should work as custom pallate)
	0.9	First revision. Gauge class with BarGauge and ValuatorGauge
		subclasses. Supports tics, tic labels, and autoscaling.

Design:
	There is a general purpose gauge class called "Gauge" that knows how
	to do all of the functions of a specific gauge but draw it and refresh
	it's background.  It has all of the functions to set flags, data and
	load values.
	
	The subclasses implement a few messages.  They know how to 
	"restoreBitmap:" and "drawSelf::". The first causes the off screen
	bitmap, holding the backgroundof the object, to be redrawn.  This is
	usually the result of rescaling, resizing or color changes.  The second
	method mentioned composites the background and then draws the value
	marker.
	
Usage:
	Parse the Guage and whatever subclass you want to use into IB.  The
	put a custom view in your interface and change the type to the gauge
	you want.  You can now make it an outlet or do whatever IB stuff you
	want.
	
	You will probably want to set some flags,  borderType, label state,
	number of tic marks, min and max values.  This will generate the
	background.  Also, load up the autoscale parameters.  Now start sending
	it data and the pointer should track the data.  
	
Demo:
	You can hook up sliders to gauges and compile just that.  This will
	cause the bars to track sliders.  Probably would make agood pallate.
	
Working Gauges:
	Bar Gauge
	Valuator Gauge
	
NonWorking Gauges:
	Dial
	
	
<joe>

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