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.
我有一个 NS 面板,它是 NS Window 的子面板;面板设置为浮动窗口级别。父窗口有一个处于全屏模式的 NSView,因此 NSPanel 浮动在全屏 NSView 之上。每当我单击面板时,它也会使父窗口进入浮动模式,这样它就会呈现在电影的顶部。我有什么办法可以防止这种情况发生吗?
每当您进入全屏模式时,为什么不将面板作为子窗口删除?它仍应显示并起作用,但不会使另一个窗口向前移动。然后,当您退出全屏模式时,将其添加回子窗口。