是否可以通过编程方式将项目添加到 Mac OS 的右键单击上下文菜单中?
我有一个程序可以在 Windows 和 Mac 操作系统上处理各种文件。
我想为用户提供在右键单击/控制单击上下文菜单中添加新选项的选项,以达到“使用[应用程序名称]压缩”的效果。
我知道这在 Windows 中通过修改注册表是很可能的,但是有没有办法在 Mac 上实现这一点? 也许使用 C++ 或 Objective C?
I have a program that works with a variety of files on both the Windows and Mac OS.
I would like to give the user the option of adding a new option to their right click/control click context menu to the effect of "Compress with [Name of App]".
I know this is quite possible in Windows with modifications to the registry, but is there a way to achieve this for the Mac? Perhaps using C++ or objective C?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的你可以。 您需要制作一个上下文菜单插件。 Apple 在其开发者网站上提供了上下文菜单插件示例代码。
Yes, you can. You need to make a contextual menu plugin. Apple has contextual menu plugin sample code on its developer site.
这是一个指南:为 OS X 编写上下文菜单插件,部分1
Here's a guide: Writing Contextual Menu Plugins for OS X, part 1