This is PaletteView.h in view mode; [Download] [Up]
// PaletteView.h
// 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 <appkit/View.h>
#define PAL_IMAGES 20 // just the ugen icons, not converters
#define ROWS 4
#define COLS 5 // ugen columns
#define CONV_IMAGES 6
#define ICON_SIZE 80 // except for ...
#define CONV_HEIGHT 53 // converters are 53 high
@interface PaletteView:View
{
NXRect hotRect[PAL_IMAGES+CONV_IMAGES];
id image[PAL_IMAGES+CONV_IMAGES];
id patchVw;
id dragImage;
}
/* instance methods */
- (BOOL)acceptsFirstMouse;
- setImages;
- mouseDown:(NXEvent *)theEvent;
- drawSelf:(NXRect *)rects :(int)count;
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.