ftp.nice.ch/pub/next/science/mathematics/HippoDraw.2.0.s.tar.gz#/HippoDraw/Hippo.bproj/StubView.m

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

// StubView.m
// By Jayson Adams, NeXT Developer Support Team
// You may freely copy, distribute and reuse the code in this example.
// NeXT disclaims any warranty of any kind, expressed or implied, as to its
// fitness for any particular use.

#import <dpsclient/psops.h>
#import <appkit/graphics.h>

#import "StubView.h"

@implementation StubView

- drawSelf:(NXRect *)rects :(int)count
{
    NXRect	lineRect;
    
    PSsetgray(NX_DKGRAY);
    NXRectFill(&bounds);
    PSsetgray(NX_BLACK);
    
    NXSetRect(&lineRect, 0.0, 0.0, NX_WIDTH(&bounds), 1.0);
    NXFrameRect(&lineRect);
    
    return self;
}

@end

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