显示桌面/隐藏Mac OS X下的所有窗口 [英] show desktop/hide all windows under Mac OS X
本文介绍了显示桌面/隐藏Mac OS X下的所有窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图创建一个应用程序,显示桌面/隐藏所有应用程序,即使是查找程序。
I am trying to create an application which show the desktop / hide all application even the finder.
您有任何想法来实现这一点吗?
Do you have any idea to achieve this?
感谢和问候,
推荐答案
当您隐藏Finder时,隐藏桌面上的图标。如果您没问题,请使用 - [NSWorkspace hideOtherApplications]
。
When you hide the Finder, you don't hide the icons on the desktop. If you're fine with that, then use -[NSWorkspace hideOtherApplications]
.
否则,您需要在其他所有项目的顶部绘制自己的窗口。
Otherwise you'll need to draw your own window over the top of everything else.
这篇关于显示桌面/隐藏Mac OS X下的所有窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文