summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Nim/Cocoa/Menulet.m')
-rw-r--r--Nim/Cocoa/Menulet.m32
1 files changed, 0 insertions, 32 deletions
diff --git a/Nim/Cocoa/Menulet.m b/Nim/Cocoa/Menulet.m
deleted file mode 100644
index 02615ac..0000000
--- a/Nim/Cocoa/Menulet.m
+++ /dev/null
@@ -1,32 +0,0 @@
-#import "Menulet.h"
-
-@implementation Menulet
-
-- (void) dealloc {
- [statusItem release];
- [super dealloc];
-}
-
-- (void) awakeFromNib {
- statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength: NSVariableStatusItemLength] retain];
- [statusItem setHighlightMode: YES];
- [statusItem setTitle: [NSString stringWithFormat:@"%C",0x2295]];
- [statusItem setEnabled: YES];
- [statusItem setToolTip: @"Slimber"];
- [statusItem setMenu: statusMenu];
-
- NSMenuItem* statusMenuItem = [[NSMenuItem alloc] initWithTitle: @"Online Users" action: NULL keyEquivalent:@""];
- [statusMenu addItem: statusMenuItem];
- [statusMenu addItem: [NSMenuItem separatorItem]];
- NSMenuItem* loggedInItem = [[NSMenuItem alloc] initWithTitle: @"You are not logged in" action: NULL keyEquivalent:@""];
- [statusMenu addItem: loggedInItem];
-}
-
-- (IBAction) updateStatus: (id) sender {
- [statusItem setTitle: [NSString stringWithString:@"Boo"]];
- NSMenuItem* statusMenuItem = [[NSMenuItem alloc] initWithTitle: @"Foo" action: @selector(updateStatus:) keyEquivalent:@""];
- [statusMenuItem setTitle:[NSString stringWithString:@"Boo"]];
- [statusMenu insertItem: statusMenuItem atIndex:1];
-}
-
-@end \ No newline at end of file