ftp.nice.ch/pub/next/developer/resources/palettes/ObjPaletteExample.N.bs.tar.gz#/ObjectPalette/SumObject.m

This is SumObject.m in view mode; [Download] [Up]

#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

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