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 ? :
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
精彩评论