|
@@ -43,11 +43,10 @@ NSInteger numberOfStaticMenuItems = 10;
|
43
|
43
|
|
44
|
44
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
|
45
|
45
|
statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength];
|
46
|
|
- NSBundle *bundle = [NSBundle mainBundle];
|
47
|
|
- statusImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"icon" ofType:@"png"]];
|
48
|
|
- statusHighlightImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"icon-alt" ofType:@"png"]];
|
49
|
|
- orangeredImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"orangered" ofType:@"png"]];
|
50
|
|
- orangeredHighlightImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"orangered-alt" ofType:@"png"]];
|
|
46
|
+ statusImage = [NSImage imageNamed:@"icon"];
|
|
47
|
+ statusHighlightImage = [NSImage imageNamed:@"icon-alt"];
|
|
48
|
+ orangeredImage = [NSImage imageNamed:@"orangered"];
|
|
49
|
+ orangeredHighlightImage = [NSImage imageNamed:@"orangered-alt"];
|
51
|
50
|
[statusItem setImage:statusImage];
|
52
|
51
|
[statusItem setAlternateImage:statusHighlightImage];
|
53
|
52
|
[statusItem setMenu:statusMenu];
|