From: Joseph Spiros Date: Fri, 14 Mar 2003 05:00:29 +0000 (+0000) Subject: Bah, I thought Kent modified the MenuTunes class to accommodate the X-Git-Tag: v1.0~188 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/4b426dd2e4cb2a9efccdba130dfaf86f735f58b5?ds=sidebyside Bah, I thought Kent modified the MenuTunes class to accommodate the changes made to the remote API --- diff --git a/MenuTunes.h b/MenuTunes.h index 89223ed..2d3c5fa 100755 --- a/MenuTunes.h +++ b/MenuTunes.h @@ -38,7 +38,7 @@ int lastPlaylistIndex; BOOL isPlayingRadio; - ITMTRemotePlayerRunningStatus isAppRunning; + ITMTRemotePlayerRunningState isAppRunning; BOOL didHaveAlbumName; BOOL didHaveArtistName; //Helper variable for creating the menu diff --git a/MenuTunes.m b/MenuTunes.m index d2fdaf2..3c96ed0 100755 --- a/MenuTunes.m +++ b/MenuTunes.m @@ -44,7 +44,7 @@ menu = [[NSMenu alloc] initWithTitle:@""]; - if ( ( [currentRemote playerRunningStatus] == ITMTRemotePlayerRunning ) ) { + if ( ( [currentRemote playerRunningState] == ITMTRemotePlayerRunning ) ) { [self remotePlayerLaunched:nil]; } else { [self remotePlayerTerminated:nil]; @@ -607,9 +607,9 @@ - (void)timerUpdate { int playlist = [currentRemote currentPlaylistIndex]; - ITMTRemotePlayerState playerState = [currentRemote playerState]; + ITMTRemotePlayerPlayingState playerPlayingState = [currentRemote playerPlayingState]; - if ((playlist > 0) || playerState != ITMTRemotePlayerStopped) { + if ((playlist > 0) || playerPlayingState != ITMTRemotePlayerStopped) { int trackPlayingIndex = [currentRemote currentSongIndex]; if (trackPlayingIndex != lastSongIndex) { @@ -668,7 +668,7 @@ } //Update Play/Pause menu item if (playPauseMenuItem){ - if (playerState == ITMTRemotePlayerPlaying) { + if (playerPlayingState == ITMTRemotePlayerPlaying) { [playPauseMenuItem setTitle:@"Pause"]; } else { [playPauseMenuItem setTitle:@"Play"]; @@ -799,7 +799,7 @@ - (void)playPause:(id)sender { - ITMTRemotePlayerState state = [currentRemote playerState]; + ITMTRemotePlayerPlayingState state = [currentRemote playerPlayingState]; if (state == ITMTRemotePlayerPlaying) { [currentRemote pause];