Have a look at this GitHub repository,It might help you :
NSPopover: how to remove border?
-
24-06-2022 - |
Question
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
La solution 2
Autres conseils
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.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow