是否可以通过编程方式将项目添加到 Mac OS 的右键单击上下文菜单中?

发布于 2024-07-22 04:53:04 字数 192 浏览 4 评论 0原文

我有一个程序可以在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一口甜 2024-07-29 04:53:05

是的你可以。 您需要制作一个上下文菜单插件。 Apple 在其开发者网站上提供了上下文菜单插件示例代码

Yes, you can. You need to make a contextual menu plugin. Apple has contextual menu plugin sample code on its developer site.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文