问题
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