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

enter image description here

Était-ce utile?

La solution 2

Have a look at this GitHub repository,It might help you :

https://github.com/github/Rebel

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
scroll top