Simple RGB LED controller for Mac OS X
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 741B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // AppDelegate.m
  3. // CaseLights
  4. //
  5. // Created by Thomas Buck on 21.12.15.
  6. // Copyright © 2015 xythobuz. All rights reserved.
  7. //
  8. #import "AppDelegate.h"
  9. @interface AppDelegate ()
  10. @end
  11. @implementation AppDelegate
  12. @synthesize statusMenu, statusItem, statusImage;
  13. - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
  14. statusImage = [NSImage imageNamed:@"MenuIcon"];
  15. [statusImage setTemplate:YES];
  16. statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength];
  17. [statusItem setImage:statusImage];
  18. [statusItem setMenu:statusMenu];
  19. }
  20. - (void)applicationWillTerminate:(NSNotification *)aNotification {
  21. // Insert code here to tear down your application
  22. }
  23. @end