0

我们试图让 NSWindow 或 NSPanel 在 OS X 10.6.x 上始终处于领先地位。我们已经看到很多建议 setLevel:NSFloatingWindowLevel 应该可以解决问题(有人说它必须是一个 NSPanel 才能保持领先)。

但是,我们使用的是 10.6.4。当应用失去焦点时,窗口会一直消失在背景中。

我看过一份报告称,Apple 已经从操作系统中完全放弃了这种可能性。

有人可以告诉我 setLevel:NSFloatingWindowLevel 是否仍然有效吗?

非常感谢 10.6 的任何工作示例代码。

谢谢,巴特

4

1 回答 1

4

Note to self: if you set the 'Hide on Deactivate' of a window to true, the windows will disappear (and thus not be on top :-().

So, setLevel:NSFloatingWindowLevel simply still works.

于 2010-08-27T22:50:45.130 回答