This is HugeMoonView.m in view mode; [Download] [Up]
/* HugeMoonView.m * Part of the Moon application for the NeXT computer. * Author: Geoffrey S. Knauth * Date: January 4, 1992 * * Permission to copy this program is hereby granted under the terms * of the Free Software Foundation's GNU General Public License. */ #import <appkit/NXImage.h> #import "HugeMoonView.h" @implementation HugeMoonView - initFrame:(const NXRect *)frameRect { [super initFrame:frameRect]; image = [[NXImage alloc] initFromSection:"FullMoon.tiff"]; return self; } - drawSelf :(const NXRect *)rects :(int)rectCount { /* draw the image of the moon */ [image composite:NX_COPY toPoint:&bounds.origin]; return self; } - free { [image free]; /* Free the image on our way out. */ return [super free]; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.