Luca
Luca

Reputation: 1874

NSPopover: how to remove border?

I' ve an NSPopover where i put my own NSView subclass to customize his content. I used an empty view with only a subview to have a "bar" on the top. The problem is that the NSPopover seems to have a sort of border all around itself and I've this ugly effect. Anyone have an idea how to fix that? Thanks

enter image description here

Upvotes: 2

Views: 680

Answers (1)

Mike Bedar
Mike Bedar

Reputation: 910

This is an old question, but I just ran into the same issue.

If you are targeting OS X 10.10 or later you can just write:

popover = NSPopover()
popover.appearance = NSAppearance(named: "NSAppearanceNameAqua")

This should kill the border.

Upvotes: 0

Related Questions