Verifying iTunes Shuffle Doesn't Work

I am developing a application for Mac, and I need to check whether Itunes (11.0) shuffles my music to verify that I am using the iTunes.hfollowing code:

if([iTunes.currentPlaylist shuffle]){
    NSLog(@"yes");
}else{
    NSLog(@"no");
}

Despite the fact that I have an iTunes shuffle, it always displays no.
Any ideas why this is happening, or am I checking it the wrong way?

+2
source share
3 answers

Good luck with that.

I reported an error about a month ago, like thousands of other developers.
I have not heard anything, and probably will not.

Like DigiMonk, this is a change in iTunes 11, but they do not update their API.

0
source

: iTunes 11 . , "shuffle" - ...

+3

For a long time, NSDistributedNotifications can happen and check if the attributes for the current playing track are previous or next. This is not the cleanest solution, but it should work if you shuffle something - this is an album or an artist. Just check if the track numbers will go in sequence or if the artist name matches, etc.

0
source

All Articles