ftp.nice.ch/pub/next/connectivity/mail/apps/PhoneSlip.3.1.NIHS.bs.tar.gz#/PhoneSlip.3.1/Source/colorView.m

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

/* Copyright(C) 1993, The MITRE Corporation */

#import "colorView.h"

@implementation colorView

- setBackgroundColor:(NXColor)color 
{
    viewColor = color;
    return self;
}

- setBackgroundGray:(float)gray
{
    viewColor = NXConvertRGBAToColor( gray, gray, gray, 1.0);
    return self;
} 

- drawSelf:(const NXRect *)rects :(int)rectCount
{
    NXRect frameRect;
    [self getFrame:&frameRect];
    [self convertRectFromSuperview:&frameRect];
    NXSetColor(viewColor);
    NXRectFill(&frameRect);
    NXFrameRect(&frameRect);
    return self;
}


@end

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