Alexander Afanasyev | 88f0b3a | 2013-09-24 23:52:08 -0700 | [diff] [blame^] | 1 | /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * @copyright See LICENCE for copyright and license information. |
| 4 | * |
| 5 | * @author Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 6 | * @author Ilya Moiseenko <iliamo@ucla.edu> |
| 7 | */ |
| 8 | |
| 9 | #import "menu-delegate.h" |
| 10 | |
| 11 | @implementation MenuDelegate |
| 12 | |
| 13 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification |
| 14 | { |
| 15 | // Insert code here to initialize your application |
| 16 | } |
| 17 | |
| 18 | // -(void)dealloc |
| 19 | // { |
| 20 | // [statusItem release]; |
| 21 | // [super dealloc]; |
| 22 | // } |
| 23 | |
| 24 | -(void)awakeFromNib |
| 25 | { |
| 26 | statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength]; |
| 27 | [statusItem setTitle:@"X"]; |
| 28 | [statusItem setMenu:statusMenu]; |
| 29 | [statusItem setHighlightMode:YES]; |
| 30 | } |
| 31 | |
| 32 | @end |