home *** CD-ROM | disk | FTP | other *** search
-
- #import "SumObject.h"
- #import <stdio.h>
-
- @implementation SumObject
-
-
- - sumThem:sender
- {
- [sum setFloatValue:[summandOne floatValueAt:0]+[summandTwo floatValueAt:0]];
- return self;
- }
-
-
- -(NXImage *)getIBImage
- {
- char buf[MAXPATHLEN + 1];
- NXBundle *bundle;
- NXImage *image;
-
- image = [[NXImage alloc] init];
-
- bundle = [NXBundle bundleForClass:[self class]];
- if ( [bundle getPath:buf forResource:"Sobject" ofType:"tiff"] ) {
- image = [[NXImage alloc] initFromFile:buf];
- }
- return(image);
- }
-
- @end
-