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

有帮助吗?

解决方案 2

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

https://github.com/github/Rebel

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top