Get current playing song using Cocoa

感情迁移 提交于 2019-12-31 18:19:04

问题


Is there a way (ofcourse there is a way, but which way) to get info about the song currently playing in iTunes on a Mac (OS 10.5.8 and OS 10.6) programmatically?

I need this for my Cocoa application.
I use iTunes 8 and Objective-C.


回答1:


Use the Scripting Bridge to ask iTunes. iTunes is even the example that the docs use.



来源:https://stackoverflow.com/questions/1327779/get-current-playing-song-using-cocoa

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!