This is PianoOctave.h in view mode; [Download] [Up]
#import <appkit/Control.h>
@interface PianoOctave : Control
/* One octave of a piano keyboard view */
{
NXRect keyRects[19]; /* The rects for the keys */
int keyStates[12]; /* The state of the keys */
int value; /* The key being clicked on */
id target; /* Who gets tapped when a key goes down */
SEL action; /* The message that gets sent */
}
- setKey:(int) keyNum toState:(int) state;
- (int)state:(int)keyNum;
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.