Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iTunesApplication * iTunes = [[SBApplication alloc] initWithBundleIdentifier:@"com.apple.iTunes"];
- int i = [iTunes currentTrack].id;
- if (i==0)
- NSLog(@"no track!!!");
- else
- NSLog(@"track id is: %d", i);
- [iTunes release];
- iTunesApplication * iTunes = [SBApplication applicationWithBundleIdentifier:@"com.apple.iTunes"];
- int i = [iTunes currentTrack].id;
- if (i==0)
- NSLog(@"no track!!!");
- else
- NSLog(@"track id is: %d", i);
Add Comment
Please, Sign In to add comment