将文件拖到 NSStatusItem
有人告诉我 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实并非如此。如果您想要这种行为,您必须为状态项滚动您自己的自定义视图。
It does not. If you want this behavior, you'll have to roll your own custom view for the status item.