1 #import "MenuTunesView.h"
4 @implementation MenuTunesView
6 - (id)initWithFrame:(NSRect)frame
8 if ( (self = [super initWithFrame:frame]) )
10 image = [NSImage imageNamed:@"menu"];
11 altImage = [NSImage imageNamed:@"selected_image"];
17 - (void)drawRect:(NSRect)rect
19 [curImage compositeToPoint:NSMakePoint(0, 0) operation:NSCompositeSourceOver];
22 - (void)mouseDown:(NSEvent *)event
25 [self setNeedsDisplay:YES];
26 [super mouseDown:event];
29 - (void)mouseUp:(NSEvent *)event
32 [self setNeedsDisplay:YES];
33 [super mouseUp:event];