在OSX 10.5下绑定到Apple键盘上的媒体键 [英] Binding to Media keys on Apple keyboards under OSX 10.5

查看:155
本文介绍了在OSX 10.5下绑定到Apple键盘上的媒体键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是OSX开发的新手,所以这可能很容易,但google没有帮助。

I am fairly new to OSX development, so this may be easy but google has not been helpful.

我试图绑定一个动作到媒体键在较新的苹果键盘上找到(播放,暂停等)。看来你不能使用常规的热键API绑定到这些键,但它必须是可能的,因为iTunes清楚地管理。有没有一些棘手的未记录的API实现这一点?

I am trying to bind an action to the media keys you find on newer Apple keyboards (Play, Pause , etc). It appears that you cannot bind to these keys using the regular hotkey API but it must be possible since iTunes clearly manages. Is there some tricky undocumented API that achieves this? Any help would be much appreciated.

推荐答案

更广泛的Google搜索后,此 http://www.rogueamoeba.com/utm/2007/09/29/ 似乎解决了这个问题。没有简单的解决方案,但如果你正在开发一个真正的Cocoa应用程序,这似乎至少可能。

After more extensive googling, this http://www.rogueamoeba.com/utm/2007/09/29/ seems to address the issue. There is no easy solution but if you are developing a real Cocoa app this seems possible at least.

这篇关于在OSX 10.5下绑定到Apple键盘上的媒体键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆