I want to show an NSPopover
from an NSToolbarItem
button in my toolbar.
(i.e. positioned below the button).
Ideally, I want to pass the NSView
of the button to the popover to position it.
My question is, how do I get the NSView
of the NSToolbarItem
?
[toolbarbutton view]
always returns nil.