Cocoa app respond to keyboard play/pause key witho

2019-07-04 01:20发布

I read this article and successfully make my app respond to media key: Make my Cocoa app respond to the keyboard play/pause key?

However, when I pressed play/pause key, the iTunes started to launch, is there any method to prevent iTunes launching when I press play/pause key in my app?

1条回答
等我变得足够好
2楼-- · 2019-07-04 01:28

Your best bet is to use this SPMediaKeyTap code, it works OK, but it can be flaky since your app's bundle ID isn't included in other's code, and the developer is not responsive to requests for new bundle IDs.

SPMediaKeyTap

查看更多
登录 后发表回答