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

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

#import "ObjectView.h"

@implementation ObjectView

- initFrame:(NXRect *)frameRect
{

    self = [super initFrame:frameRect];
 		
return self;
}


- drawSelf: (const NXRect *)rects :(int)rectCount
{
   float xscale,yscale;
  NXRect framerect;
 
 	if(strcmp([NXApp appName] , "InterfaceBuilder") ==0){
	[self getFrame:&framerect];

	xscale = framerect.size.width/500.0;
	yscale = framerect.size.height/300.0;
	
			PSWTitle(xscale, yscale);
	}

   return self;
}



@end

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