How to change the NSPopover's arrow head position?

风格不统一 提交于 2019-11-30 02:50:50

问题


I have a NSPopover on my app but i want to change the position of the arrow head.
What i have:


What i want:


As you can see in the second image the arrow head of the NSPopover is at the top. How can i do that?
my code:

[_popover showRelativeToRect:[sender bounds] ofView:sender preferredEdge:NSMaxXEdge];

Thank you!


回答1:


Unfortunately, this isn't possible with NSPopover (as of 10.7). You'll have to use an alternative popover, such as the excellent SFBPopovers.



来源:https://stackoverflow.com/questions/10766819/how-to-change-the-nspopovers-arrow-head-position

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!