This is CalcObject.m in view mode; [Download] [Up]
#import "CalcObject.h"
@implementation CalcObject
- (void)awakeFromNib
// This is one of the last methods executed after the nib file is loaded.
// This is the Best way to initialize an object and jump into
// a method after the nib file was loaded.
{
[first selectText:self];
NSBeep();
}
- (void)CALC:(id)sender
{
// Declare Variables
float totalvalue;
// Perform Calculations
totalvalue = ([first floatValue]*[second floatValue]);
// Display Results
[third setFloatValue:totalvalue];
}
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.