Can we remove NSPopover's arrow in macOS using Objective-C

When I am displaying a NSViewController as NSPopover, I am getting an arrow with this NSPopover. My question is how we can remove this arrow from NSPopover?

Upvotes: 2

Views: 1132

Answers (1)

InfalibleCoinage
InfalibleCoinage

Reputation: 608

I am not aware of any Apple, built-in functionality to do so. However, it is possible to mimic the functionality of NSPopover and have more advanced control. For example, the SFBPopovers library seems a very good choice and has a setDrawsArrow: method: https://github.com/sbooth/SFBPopovers

Here is a picture from the example application with a popover with no arrow coming from the "Toggle Popover" button. SFBPopovers

Upvotes: 1

Related Questions