HAS commented that I could track changes to the player state of iTunes using NSDistributedNotificationCenter.
I've gone ahead and made changes to the iTunesBriged code to show how to do that. Now, whenever iTunes changes state, whether it's via the iTunesBridged application or by directly manipulating iTunes, the title of the Play/Pause button changes and the current track name is listed in the text box.
As mentioned in that comment, Notification Watcher is a great app for observing distributed notifications. It made it really easy to figure out what iTunes was sending and what data was in the userInfo.
Thanks for the comment, and the idea!
Get iTunesBridged source downloads, which can be cloned with Mercurial or downloaded as a tarball.
Bookmark/Search this post with:
Recent comments
33 min 28 sec ago
35 min 47 sec ago
1 day 1 hour ago
1 day 2 hours ago
4 days 12 hours ago
6 days 9 hours ago
6 days 9 hours ago
1 week 18 hours ago
1 week 18 hours ago
1 week 18 hours ago