Merge branch 'master' of git://github.com/ksuther/MenuTunes
[MenuTunes.git] / StatusItemHack.m
1 #import "StatusItemHack.h"
2 #import "MainController.h"
3
4 @implementation StatusItemHack
5
6 + (void)install
7 {
8     [StatusItemHack poseAsClass:[NSStatusBarButton class]];
9 }
10
11 - (void)mouseDown:(NSEvent *)event
12 {
13         if ([self isEnabled]) {
14                 [[MainController sharedController] menuClicked];
15         }
16     [super mouseDown:event];
17 }
18
19 @end