5 // Created by Doug Dickinson on Sun Jun 01 2003.
6 // Copyright (c) 2003 Doug Dickinson (dasher@DressTheMonkey.plus.com). All rights reserved.
9 #import "DasherController.h"
10 #import "DasherView.h"
11 #import "PreferencesController.h"
13 static DasherController *dasherController = nil;
15 @implementation DasherController
17 + (id)dasherController
19 if (dasherController == nil)
21 dasherController = [[self alloc] init]; // retain to use as singleton
22 [NSBundle loadNibNamed:@"DasherPanel" owner:self];
25 return dasherController;
30 [self setPanelAlphaValue:[[NSUserDefaults standardUserDefaults] floatForKey:DASHER_PANEL_OPACITY]];
33 - (void)makeKeyAndOrderFront:(id)sender
37 [NSBundle loadNibNamed:@"DasherPanel" owner:self];
40 [panelUI makeKeyAndOrderFront:self];
43 - (void)setPanelAlphaValue:(float)anAlphaValue
45 // [panelUI setOpaque:NO];
46 [panelUI setAlphaValue:anAlphaValue];