将文件拖到 NSStatusItem

发布于 2024-09-16 07:46:22 字数 113 浏览 6 评论 0原文

有人告诉我 NSApp 的 application:openFile: 委托方法将允许我的应用程序通过将文件放入扩展坞中来打开文件,但这也适用于菜单栏中的 NSStatusItems 吗?在尝试实施之前我想知道。

I was told that the application:openFile: delegate method for NSApp would allow my application to open files by dropping them into the dock, but does this also apply to NSStatusItems in the menu bar? I would like to know before trying to implement.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

太傻旳人生 2024-09-23 07:46:22

事实并非如此。如果您想要这种行为,您必须为状态项滚动您自己的自定义视图。

It does not. If you want this behavior, you'll have to roll your own custom view for the status item.

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