X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/e4c45eacd7168f01097aeb8975a0b5825714a58d..479952e2cf104d1f984108c5b672d8fbb039eebe:/iTunesRemote.m diff --git a/iTunesRemote.m b/iTunesRemote.m index eb8fa7e..e286598 100755 --- a/iTunesRemote.m +++ b/iTunesRemote.m @@ -69,6 +69,11 @@ nil]; } +- (BOOL)showPrimaryInterface +{ + return NO; +} + - (ITMTRemotePlayerRunningState)playerRunningState { NSArray *apps = [[NSWorkspace sharedWorkspace] launchedApplications]; @@ -134,6 +139,7 @@ { case 'cLiP': return ITMTRemotePlayerLibraryPlaylist; + break; case 'cRTP': return ITMTRemotePlayerRadioPlaylist; break; @@ -200,7 +206,7 @@ - (BOOL)setCurrentSongRating:(float)rating { - [[ITAppleEventCenter sharedCenter] sendAEWithSendString:[NSString stringWithFormat:@"data:long(%lu), ----:obj { form:'prop', want:type('prop'), seld:type('pRte'), from:obj { form:'indx', want:type('cTrk'), seld:long(%lu), from:obj { form:'indx', want:type('cPly'), seld:long(%lu), from:'null'() } } }",(long)rating*100,[self currentSongIndex],[self currentPlaylistIndex]] eventClass:@"core" eventID:@"setd" appPSN:iTunesPSN]; + [[ITAppleEventCenter sharedCenter] sendAEWithSendString:[NSString stringWithFormat:@"data:long(%lu) ----:obj { form:'prop', want:type('prop'), seld:type('pRte'), from:obj { form:'prop', want:type('prop'), seld:type('pTrk'), from:'null'() } }",(long)rating*100] eventClass:@"core" eventID:@"setd" appPSN:iTunesPSN]; return YES; }