Dropbox has a wonderful new dropdown view for their menubar app. I have failed to find similiar cocoa examples to duplicate this type of view. NSMenuItem seems to be for basic lists. Any pointers in the right direction?
Dropbox为他们的菜单栏应用程序提供了一个精彩的新下拉视图。我没有找到类似的可可示例来复制这种类型的视图。 NSMenuItem似乎适用于基本列表。任何正确方向的指针?
1 个解决方案
#1
1
It's not a NSMenuItem
. It is a NSStatusItem
that resides in the systemwide NSStatusBar
. The distinction is important, because NSStatusItem
s can call just about any method on any given object of your application when they're clicked.
它不是NSMenuItem。它是一个NSStatusItem,驻留在系统范围的NSStatusBar中。区别很重要,因为NSStatusItems可以在单击应用程序的任何给定对象时调用它们。
I suspect that their NSStatusItem
triggers an action that displays a borderless window.
我怀疑他们的NSStatusItem会触发一个显示无边框窗口的操作。
You can find more information about status items in the Status Bar Programming Topics document.
您可以在状态栏编程主题文档中找到有关状态项的更多信息。
#1
1
It's not a NSMenuItem
. It is a NSStatusItem
that resides in the systemwide NSStatusBar
. The distinction is important, because NSStatusItem
s can call just about any method on any given object of your application when they're clicked.
它不是NSMenuItem。它是一个NSStatusItem,驻留在系统范围的NSStatusBar中。区别很重要,因为NSStatusItems可以在单击应用程序的任何给定对象时调用它们。
I suspect that their NSStatusItem
triggers an action that displays a borderless window.
我怀疑他们的NSStatusItem会触发一个显示无边框窗口的操作。
You can find more information about status items in the Status Bar Programming Topics document.
您可以在状态栏编程主题文档中找到有关状态项的更多信息。