1 #import "StatusWindowController.h"
2 #import "StatusWindow.h"
4 @implementation StatusWindowController
8 if ( (self = [super init]) )
10 [NSBundle loadNibNamed:@"StatusWindow" owner:self];
11 [statusWindow center];
16 - (void)setUpcomingSongs:(NSString *)string numSongs:(int)songs
18 [statusField setStringValue:string];
19 [statusWindow setFrame:NSMakeRect(0, 0, 300, 40 + (songs * 17)) display:NO];
20 [statusWindow center];
21 [statusWindow makeKeyAndOrderFront:nil];
24 - (void)setTrackInfo:(NSString *)string lines:(int)lines
26 [statusField setStringValue:string];
27 [statusWindow setFrame:NSMakeRect(0, 0, 316, 40 + (lines * 17)) display:NO];
28 [statusWindow center];
29 [statusWindow makeKeyAndOrderFront:nil];
34 [NSThread detachNewThreadSelector:@selector(fadeOutAux) toTarget:self withObject:nil];
40 NSAutoreleasePool *p00l = [[NSAutoreleasePool alloc] init];
42 for (i = 1.0; i > 0; i -= .003)
44 [statusWindow setAlphaValue:i];