Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个NSPopover放置我自己的NSView子类来定制他的内容的地方。我使用只有一个子视图的空视图在顶部有一个“栏”。问题是它NSPopover本身似乎有一种边界,我有这种丑陋的效果。有人知道如何解决这个问题吗?谢谢
NSPopover
NSView
这是一个老问题,但我刚刚遇到了同样的问题。
如果你的目标是 OS X 10.10 或更高版本,你可以写:
popover = NSPopover() popover.appearance = NSAppearance(named: "NSAppearanceNameAqua")
这应该杀死边界。
看看这个 GitHub 存储库,它可能会对您有所帮助:
https://github.com/github/Rebel