ftp.nice.ch/Attic/openStep/developer/examples/PSviewExample.2.0.m.NIS.bs.tgz#/PSviewExample.2.0.m.NIS.bs/Source/InfoPanelView.m

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

#import "InfoPanelView.h"

@implementation InfoPanelView


// 
// The first two lines clear the view,  The remaider display the
// message in the view.
//
- (void)drawRect:(NSRect)r
{
	PSsetgray (NSBlack);
	PSrectfill ([self bounds].origin.x, [self bounds].origin.y,
		[self bounds].size.width, [self bounds].size.height);


        	PSsetgray (NSLightGray);
		PSmoveto (15.0, 80.0);
		PSselectfont ("Times-Italic", 65.0);
                PSshow ("OpenStep");

                PSsetgray (NSLightGray);	
                PSmoveto (15.0, 60.0);
                PSlineto(425,60);
                
		PSsetgray (NSWhite);
		PSmoveto (45.0, 15.0);
		PSselectfont ("Times-Bold", 50.0);
                PSshow ("PS View Example");


		PSstroke();
}


@end

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