简体   繁体   English

NSStatusBar 隐藏在 Mac OS X Lion 中

[英]NSStatusBar hidden in Mac OS X Lion

I'm currently developing a status bar application.我目前正在开发一个状态栏应用程序。 It's quite important to know if the status bar is hidden because an application entered the full screen mode.知道状态栏是否因为应用程序进入全屏模式而隐藏非常重要。 Is there a way to know that?有办法知道吗?

Thanks in advance.提前致谢。

Pretty much the only notification you're going to get is from NSWorkspaceActiveSpaceDidChangeNotification .几乎您将获得的唯一通知来自NSWorkspaceActiveSpaceDidChangeNotification Besides that, NSRunningApplication might be of a little help but you can't immediately distinguish if an app is in fullscreen because (on the user-end), an app's fullscreen mode is handled entirely by the Dock app.除此之外, NSRunningApplication可能会有所帮助,但您无法立即区分应用程序是否处于全屏状态,因为(在用户端),应用程序的全屏模式完全由 Dock 应用程序处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM