Um, yeah. Started working on this and did some work getting everything on the same...
[MenuTunes.git] / MenuTunesView.m
1 #import "MenuTunesView.h"
2
3
4 @implementation MenuTunesView
5
6 - (id)initWithFrame:(NSRect)frame
7 {
8     if ( (self = [super initWithFrame:frame]) )
9     {
10         images = [[NSDictionary alloc] initWithObjectsAndKeys:
11             [NSImage imageNamed:@"menu"], @"normal",
12             [NSImage imageNamed:@"selected_image"],     @"selected",
13             nil];
14     }
15     return self;
16 }
17
18 - (void)drawRect:(NSRect)rect
19 {
20     NSImage *image
21     [curImage compositeToPoint:NSMakePoint(0, 0) operation:NSCompositeSourceOver];
22 }
23
24 - (void)mouseDown:(NSEvent *)event
25 {
26     curImage = altImage;
27     [self setNeedsDisplay:YES];
28     [super mouseDown:event];
29 }
30
31 - (void)mouseUp:(NSEvent *)event
32 {
33     curImage = image;
34     [self setNeedsDisplay:YES];
35     [super mouseUp:event];
36 }
37
38 @end