Obj-C/Cocoa:快捷记录器框架的使用,如何?
要捕获用于注册全局热键的击键,我想使用快捷方式记录器。但我无法让它工作。这是我到目前为止所做的:
- 从svn安装的xcode 3中查看当前版本
- ,因为我的xcode 4无法构建,然后
- 在xcode 4中使用xcode 3构建它,我在构建目录中添加了shortcutrecorder.framework到我的应用程序,将 SRRecorderControl.h 拖/复制到我的应用程序目录,并
将#import "SRRecorderControl.h"
插入到我的 AppDelegate.h
在构建时 并运行,它失败并说找不到图像。我知道快捷方式记录器主目录中有图像,但我不知道将它们放在哪里。以及:如何将特殊的快捷方式记录器文本字段添加到我的主窗口?
to capture keystrokes for registering global hotkeys i want to use the shortcut recorder. but i can't get it to work. here is what i have done so far:
- checked out the current version from the svn
- installed xcode 3 because my xcode 4 wouldn't build, then built it with xcode 3
- in xcode 4, i added the shortcutrecorder.framework in the build-directory to my application, dragged/copied the SRRecorderControl.h to my application directory and inserted
#import "SRRecorderControl.h"
to my AppDelegate.h
when i build and run, it fails and says images not found. i know that there are images in the shortcut recorder main directory, but i dont know where to put these. and: how do i add the special shortcut recorder textfield to my main window?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您忘记了“复制框架”阶段。将 ShortcutRecorder.framework 添加到“复制框架”。
您可以在目标信息的构建阶段找到它。
You forgot 'Copy Frameworks' stage. Add ShortcutRecorder.framework to 'Copy Frameworks'.
You can find it on build phase of target information.