blob: 71e4d87008c5fb0b4ca93d3298602649940734f5 [file] [log] [blame]
// Copyright 2017 The Upspin Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#import "AppDelegate.h"
@interface AppDelegate()
@property(nonatomic, strong) NSStatusItem* statusItem;
@end
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification*)aNotification {
self.statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];
self.statusItem.image = [NSImage imageNamed:@"augie-menubar"];
NSMenu* menu = [NSMenu new];
[menu addItem:[[NSMenuItem alloc] initWithTitle:@"Quit"
action:@selector(terminate:)
keyEquivalent:@""]];
self.statusItem.menu = menu;
}
@end