home *** CD-ROM | disk | FTP | other *** search
-
- /* Generated by Interface Builder */
-
- #import "ShiftInspector.h"
- #import <appkit/appkit.h>
-
- @implementation ShiftInspector
-
- - appDidInit:sender
- {
- //When app inits, install first view in Inspector.
- id aView;
- aView=[[View alloc] init]; //create a new contentView
- arrayView=[inspectorArray setContentView:aView]; //swap,get array of inspector views
- [inspectorArray free]; //we have the view, no longer need this
- [inspectorView addSubview:arrayView]; //add to inspector's view
- [arrayView moveTo: 0.0 :0.0]; //start with leftmost (counter) view
- [inspectorView display];
- return self;
- }
-
- - changeToCounter:sender
- {
- [arrayView moveTo:0.0 :0.0]; //move view to counter
- [inspectorView display];
- return self;
- }
- - changeToSquarer:sender
- {
- [arrayView moveTo:-200.0 :0.0]; //move view to squarer
- [inspectorView display];
- return self;
- }
-
- - count:sender
- {
- [countDisplay setIntValue:([countDisplay intValue]+1)];
- return self;
- }
-
- - square:sender
- {
- float value=[sender floatValue];
- [squareRoot setFloatValue:value];
- [square setFloatValue:(value*value)];
- return self;
- }
-
-
- @end
-