X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/3d615cbf911616cc72a237911377daa98dc1b287..efd57bc799aac892be3c161826168729b0419fb4:/iTunesRemote.m diff --git a/iTunesRemote.m b/iTunesRemote.m index 35256b4..b14f74e 100755 --- a/iTunesRemote.m +++ b/iTunesRemote.m @@ -125,17 +125,19 @@ return [[ITAppleEventCenter sharedCenter] sendAEWithSendStringForNumber:[NSString stringWithFormat:@"kocl:type('cTrk'), '----':obj { form:'indx', want:type('cPly'), seld:long(%lu), from:'null'() }",index] eventClass:@"core" eventID:@"cnte" appPSN:iTunesPSN]; } -- (NSString *)classOfPlaylistAtIndex:(int)index +- (ITMTRemotePlayerPlaylistClass)classOfPlaylistAtIndex:(int)index { int realResult = [[ITAppleEventCenter sharedCenter] sendTwoTierAEWithRequestedKeyForNumber:@"pcls" fromObjectByKey:@"pPla" eventClass:@"core" eventID:@"getd" appPSN:iTunesPSN]; + // ADD SUPPORT FOR RETURNING A ITMTRemotePlayerLibraryPlaylist WHEN PLAYLIST IS LIBRARY. + switch (realResult) { case 'cRTP': - return @"radio tuner playlist"; + return ITMTRemotePlayerRadioPlaylist; break; default: - return @"playlist"; + return ITMTRemotePlayerPlaylist; } }