NSMenuItem和NSPopOver [英] NSMenuItem and NSPopOver
问题描述
在OS X应用程式上,当滑鼠游标移到NSMenuItem(例如聚光灯)时,显示NSPopover的技术是什么。
!
Christopjhe
我知道已经有一段时间,但如果你还没有找到解决方案:将 然后在调用此方法时显示popover。 On OS X app, what is the technique to show a NSPopover when the mouse is over a NSMenuItem (like in spotlight for example). Thanks a lot!!!
Christopjhe I know it's been a while, but if you still haven't found a solution: Register your class as a then show the popover when this method is called. 这篇关于NSMenuItem和NSPopOver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! NSMenuDelegate
注册到包含 NSMenuItem $ c $>的菜单中,将您的类注册为
$ b < c>,并实现
- (void)菜单:(NSMenu *)菜单willHighlightItem:
NSMenuDelegate
to the menu that contains the NSMenuItem
, and implement- (void)menu:(NSMenu *)menu willHighlightItem:(NSMenuItem *)item;