1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // AppDelegate.m
- // RedditBar
- //
- // Created by Thomas Buck on 30.11.13.
- // Copyright (c) 2013 xythobuz. All rights reserved.
- //
-
- #import "AppDelegate.h"
-
- @implementation AppDelegate
-
- @synthesize statusMenu, statusItem, statusImage, statusHighlightImage, prefWindow;
-
- - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
- statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength];
- NSBundle *bundle = [NSBundle mainBundle];
- statusImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"icon" ofType:@"png"]];
- statusHighlightImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"icon-alt" ofType:@"png"]];
- [statusItem setImage:statusImage];
- [statusItem setAlternateImage:statusHighlightImage];
- [statusItem setMenu:statusMenu];
- [statusItem setToolTip:@"Reddit Bar"];
- [statusItem setHighlightMode:YES];
- }
-
- -(IBAction)showPreferences:(id)sender {
- [NSApp activateIgnoringOtherApps:YES];
- prefWindow = [[PrefController alloc] initWithWindowNibName:@"Prefs"];
- [prefWindow setParent:self];
- [prefWindow showWindow:self];
- }
-
- -(void)prefReturnName:(NSString *)name Pass:(NSString *)pass subscriptions:(Boolean)subscriptions subreddits:(NSString *)subreddits {
-
- }
-
- @end
|