New hax0ring :D
authorKent Sutherland <ksuther@ithinksw.com>
Thu, 8 May 2003 22:44:02 +0000 (22:44 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Thu, 8 May 2003 22:44:02 +0000 (22:44 +0000)
StatusItemHack.h [new file with mode: 0755]
StatusItemHack.m [new file with mode: 0755]

diff --git a/StatusItemHack.h b/StatusItemHack.h
new file mode 100755 (executable)
index 0000000..3eb7ef0
--- /dev/null
@@ -0,0 +1,14 @@
+/* StatusItemHack */
+
+#import <Cocoa/Cocoa.h>
+
+@interface NSStatusBarButton : NSButton
+{
+}
+@end
+
+@interface StatusItemHack : NSStatusBarButton
+{
+}
++ (void)install;
+@end
diff --git a/StatusItemHack.m b/StatusItemHack.m
new file mode 100755 (executable)
index 0000000..296d185
--- /dev/null
@@ -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