Native Mac OS X OtaClock replica
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AppDelegate.m 859B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // AppDelegate.m
  3. // OtaClock
  4. //
  5. // Created by Thomas Buck on 16.08.15.
  6. // Copyright (c) 2015 xythobuz. All rights reserved.
  7. //
  8. #import "AppDelegate.h"
  9. @interface AppDelegate ()
  10. @property (weak) IBOutlet NSWindow *window;
  11. @end
  12. @implementation AppDelegate
  13. @synthesize statusItem;
  14. @synthesize mainMenu;
  15. - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
  16. // Create Status Bar Item
  17. /*
  18. statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];
  19. statusItem.image = [NSImage imageNamed:@"Menu"];
  20. statusItem.highlightMode = YES;
  21. statusItem.menu = mainMenu; */ // Use same menu used for right-clicks
  22. }
  23. - (void)applicationWillTerminate:(NSNotification *)aNotification {
  24. // Remove Status Bar Item
  25. //[[NSStatusBar systemStatusBar] removeStatusItem:statusItem];
  26. }
  27. @end