如何改变NSPopover的箭头位置? [英] How to change the NSPopover's arrow head position?

查看:1571
本文介绍了如何改变NSPopover的箭头位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个NSPopover在我的应用程序,但我想改变箭头的位置。

我有什么:

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


我想要什么:


What i want:


正如你在第二张图片中看到的,NSPopover的箭头在顶部。
我如何做到这一点?

我的代码:


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];

谢谢!

推荐答案

不幸的是,这不可能用 NSPopover (从10.7开始)。您必须使用其他弹出式窗口,例如优秀的 SFBPopovers

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

这篇关于如何改变NSPopover的箭头位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆