Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the NSPopover's arrow head position?

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!

like image 713
Pedro Vieira Avatar asked May 26 '12 13:05

Pedro Vieira


1 Answers

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

like image 150
sudo rm -rf Avatar answered Oct 27 '22 11:10

sudo rm -rf