10

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


What i want:
enter image description here


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!

4

1 回答 1

10

不幸的是,这是不可能的NSPopover(从 10.7 开始)。您必须使用替代弹出框,例如出色的SFBPopovers.

于 2012-05-26T14:17:54.803 回答