1 #import "MenuTunesView.h"
4 @implementation MenuTunesView
6 - (id)initWithFrame:(NSRect)frame
8 if ( (self = [super initWithFrame:frame]) )
10 images = [[NSDictionary alloc] initWithObjectsAndKeys:
11 [NSImage imageNamed:@"menu"], @"normal",
12 [NSImage imageNamed:@"selected_image"], @"selected",
18 - (void)drawRect:(NSRect)rect
21 [curImage compositeToPoint:NSMakePoint(0, 0) operation:NSCompositeSourceOver];
24 - (void)mouseDown:(NSEvent *)event
27 [self setNeedsDisplay:YES];
28 [super mouseDown:event];
31 - (void)mouseUp:(NSEvent *)event
34 [self setNeedsDisplay:YES];
35 [super mouseUp:event];