开发者

Get Shortcut Recorder working in Xcode 4

开发者 https://www.devze.com 2023-03-14 00:13 出处:网络
Is there any way to have a Shortcut Recorder in Objective-C, where the user can choose the shortcut? I tried DDHotKey, which worked for me, but with this library users can not choose the shortcut the

Is there any way to have a Shortcut Recorder in Objective-C, where the user can choose the shortcut?

I tried DDHotKey, which worked for me, but with this library users can not choose the shortcut themselves.

Then I tried to im开发者_运维问答plement the Shortcut Recorder, but there I can only work with Xcode 3 because of the ibplugin.

So is there any way to have something like this in Xcode 4 ? :

Get Shortcut Recorder working in Xcode 4

Mentioned Libraries:

DDHotKey: Here

Shortcut Recorder:Here


IBPlugins do not work in Xcode 4, as you've found out. (File a bug if you want them back) However, this does not prevent you from instantiating the control programmatically...


This is definitely possible--take a look at Jumpcut's source. You might have to change the build settings to use LLVM compiler 3.0 for it to build in Xcode 4, but it's a pretty good example Shortcut Recorder implementation.


There is Shortcut Recorder patch I wrote to use user defined runtime attribute on xcode 4.

You don't need to use ibplugin but just editing NSTextField and its cell.

See issue 58

0

精彩评论

暂无评论...
验证码 换一张
取 消