Is there any way or function that can be used to obtain the expose effect in Mac, when a button is clicked?
I tried searching, but I had no luck, so far.
Is there any way or function that can be used to obtain the expose effect in Mac, when a button is clicked?
I tried searching, but I had no luck, so far.
There is no API for this. AFAIK the only way to do it is to use
NSWorkspace
to launch either the Exposé app (Mac OS X versions < 10.7) or the Mission Control app (Mac OS X versions >= 10.7).This code uses the
com.apple.exposelauncher
bundle ID which is the same for all versions of Mac OS X that ship with Exposé: