This is BounceView.h in view mode; [Download] [Up]
/* Generated by Interface Builder */ #import <appkit/View.h> // the number of edges, #define numEdges 10 // and the maximum velocity of a point in either the x or y direction. #define maxVel 25 #define minVel 10 @interface BounceView:View { short pos[ numEdges][ 4]; // position of each edge. (x1, y1, x2, y2). short vel[ 4]; // current point velocities (for the leading edge) id animator; // to keep us moving . . . } + newFrame:(NXRect *)r; - setAnimator:anObject; - animate:sender; - animator; - drawSelf:(NXRect *)r :(int)count; - moveLine; @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.