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