本文介绍了如何在Mac Cocoa App中实现快捷键输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Cocoa App中创建一个全局热键输入框.

I've needed to make a global hot key input box in my Cocoa App.

我了解Shortcut Recorder,但这是一个非常古老的解决方案.它的某些部分已使用Carbon实施,但已弃用,如果使用它,我将无法将其发布到Mac App Store.

I know about Shortcut Recorder, but it is a very old solution. It has parts implemented using Carbon, which has been deprecated, and I can't publish my app to the Mac App Store if I use it.

是否有任何现成的现代解决方案?谁能给我办法让我一个人做(我不知道从哪里开始)?

Is there any ready-to-use modern solution? Can anybody give me the way to make this by myself (I don't know where to start from)?

推荐答案

有一个名为 MASShortcut 的现代框架,用于实现全局快捷方式在OS X 10.7+中.

There is a modern framework named MASShortcut for implementing Global Shortcuts in OS X 10.7+.

这篇关于如何在Mac Cocoa App中实现快捷键输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 12:40