I am trying to crea开发者_开发问答te an application which show the desktop / hide all application even the finder.
Do you have any idea to achieve this?
Thanks and regards,
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.
It depends on what you are really trying to do. Have a look at the Apple docs on kiosk mode to see if they help.
You can easily achieve this by using applescript to set the current application to find then executing the [NSWorkspace hideOtherApplications]
.
Activate Application "Finder"
Pretty much all the additional code you need. Fairly simple.
精彩评论