X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/5b87e582c5b178681b7869f0dc2674ec15056dc3..67c27db4fde8f76cff3e419768d8d7a047f4eb50:/MainController.m diff --git a/MainController.m b/MainController.m index f9e23ed..05ef785 100755 --- a/MainController.m +++ b/MainController.m @@ -331,6 +331,18 @@ static MainController *sharedController; } [self setLatestSongIdentifier:[[self currentRemote] playerStateUniqueIdentifier]]; + + NSString *artist = [[self currentRemote] currentSongArtist]; + NSString *title = [[self currentRemote] currentSongTitle]; + NSString *toolTip; + if (artist) { + toolTip = [NSString stringWithFormat:@"%@ - %@", artist, title]; + } else if (title) { + toolTip = title; + } else { + toolTip = @"No Song Playing"; + } + [statusItem setToolTip:toolTip]; NS_HANDLER [self networkError:localException]; NS_ENDHANDLER