summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-19 22:48:43 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-19 22:48:43 (GMT)
commit0a3239b01f656355367b16d734d55624fca0da8f (patch)
tree0b17a158b9ed0a50627c913562df200c6ee1106d /Nim/Cocoa/Menulet.m
parentdadef90f080d5434db1f6924cc74a805a3a451cd (diff)
downloadswift-contrib-0a3239b01f656355367b16d734d55624fca0da8f.zip
swift-contrib-0a3239b01f656355367b16d734d55624fca0da8f.tar.bz2
Rename Nim to Slimber.
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