开发者

NSStatusBar hidden in Mac OS X Lion

开发者 https://www.devze.com 2023-03-27 20:05 出处:网络
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?

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. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消