Reputation: 5323
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?
Thanks and regards,
Upvotes: 1
Views: 1552
Reputation: 19
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.
Upvotes: 0
Reputation: 86691
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.
Upvotes: 0
Reputation: 44361
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.
Upvotes: 2