Make menu bar view not hide when clicking outside view

394 views Asked by At

I'll attach a picture right off the bat so we're all on the same page. Here is my application...

enter image description here

I am attempting to make the NSPopover clickable, but no matter what behavior it is set to the application still hides because the click is outside of the menu view bounds.

   [myPopover setBehavior:NSPopoverBehaviorApplicationDefined]

I was wondering if anyone had any thoughts on how to either make the menu view stay open even when clicked outside of its bounds or make the popover clickable another way. Thanks!

1

There are 1 answers

0
Atlas Wegman On BEST ANSWER

After searching around it seems the best solution to this is to create an NSWindow subclass and merely pin it at the desired location.