From 261cf808a5288c8204c222b5feb724584c7482a8 Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Thu, 8 May 2003 22:44:02 +0000 Subject: [PATCH] New hax0ring :D --- StatusItemHack.h | 14 ++++++++++++++ StatusItemHack.m | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100755 StatusItemHack.h create mode 100755 StatusItemHack.m diff --git a/StatusItemHack.h b/StatusItemHack.h new file mode 100755 index 0000000..3eb7ef0 --- /dev/null +++ b/StatusItemHack.h @@ -0,0 +1,14 @@ +/* StatusItemHack */ + +#import + +@interface NSStatusBarButton : NSButton +{ +} +@end + +@interface StatusItemHack : NSStatusBarButton +{ +} ++ (void)install; +@end diff --git a/StatusItemHack.m b/StatusItemHack.m new file mode 100755 index 0000000..296d185 --- /dev/null +++ b/StatusItemHack.m @@ -0,0 +1,17 @@ +#import "StatusItemHack.h" +#import "NewMainController.h" + +@implementation StatusItemHack + ++ (void)install +{ + [StatusItemHack poseAsClass:[NSStatusBarButton class]]; +} + +- (void)mouseDown:(NSEvent *)event +{ + [[MainController sharedController] menuClicked]; + [super mouseDown:event]; +} + +@end -- 2.20.1