X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/9c8f6e1b9b0b947d898a3d9bae3acb3999879791..b2bb0c2895efc7d1556a37576f224d7e5ff91258:/StatusWindowController.m?ds=inline diff --git a/StatusWindowController.m b/StatusWindowController.m index b64bb76..a0ab68c 100755 --- a/StatusWindowController.m +++ b/StatusWindowController.m @@ -52,6 +52,9 @@ static StatusWindowController *sharedController; [_window setExitMode:ITTransientStatusWindowExitAfterDelay]; [_window setExitDelay:(exitDelay ? exitDelay : 4.0)]; + [_window setHorizontalPosition:[df integerForKey:@"statusWindowHorizontalPosition"]]; + [_window setVerticalPosition:[df integerForKey:@"statusWindowVerticalPosition"]]; + if ( entryTag == 2101 ) { entryEffect = [[[ITDissolveWindowEffect alloc] initWithWindow:_window] autorelease]; } else if ( entryTag == 2102 ) { @@ -233,7 +236,7 @@ static StatusWindowController *sharedController; [_window setImage:[NSImage imageNamed:@"Register"]]; [_window buildDialogWindowWithMessage:message defaultButton:@"Register Now" - alternateButton:@"Quit MenuPrefs" + alternateButton:@"Quit MenuTunes" target:[MainController sharedController] defaultAction:@selector(registerNowOK) alternateAction:@selector(registerNowCancel)]; @@ -242,5 +245,20 @@ static StatusWindowController *sharedController; [_window setLocked:YES]; } +- (void)showReconnectQueryWindow +{ + NSString *message = @"The selected shared player is available again.\nWould you like to reconnect to it?."; + + [_window setImage:[NSImage imageNamed:@"Register"]]; + [_window buildDialogWindowWithMessage:message + defaultButton:@"Reconnect" + alternateButton:@"Ignore" + target:[MainController sharedController] + defaultAction:@selector(reconnect) + alternateAction:@selector(cancelReconnect)]; + + [_window appear:self]; + [_window setLocked:YES]; +} @end \ No newline at end of file