ftp.nice.ch/pub/next/tools/screen/Rulers_by_SW.1.2.s.tar.gz#/Rulers_by_SW/Rulers_by_SW-1.2/TransparentBox.m

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

// TransparentBox.m
// Project: Rulers
//
// Stephan Wacker
// 93-02-12

//
// A TransparentBox is a Box object that has a transparent background.
//


#import "TransparentBox.h"

@implementation TransparentBox


- drawSelf: (const NXRect *) rects : (int) rectCount
// Do nothing, i.e. stay transparent.
{
    return self;
}


- (BOOL) isOpaque
{
    return NO;
}


////////////////////////////////////////////////////////////////////////
//
// SuperimposedObject protocol
//
////////////////////////////////////////////////////////////////////////

- awakeFromMetamorphosis
{
    [self setOpaque: NO];
    
    return self;
}


@end

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