"揭露"在一台Mac应用效果 [英] "Expose" effect in a Mac application

查看:163
本文介绍了"揭露"在一台Mac应用效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有可用于获取Mac上暴露影响任何方式或功能,单击一个按钮时?

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.

推荐答案

有没有API这一点。 AFAIK做到这一点的唯一方法是使用 NSWorkspace ,以启动Exposé功能应用(Mac OS X版本< 10.7),或在任务控制中心应用(Mac OS X版本> = 10.7)。

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

这code使用 com.apple.exposelauncher 捆绑ID这对于使用Exposé出货的Mac OS X所有版本是相同的:

This code uses the com.apple.exposelauncher bundle ID which is the same for all versions of Mac OS X that ship with Exposé:

[[NSWorkspace sharedWorkspace] launchAppWithBundleIdentifier:@"com.apple.exposelauncher" 
                                                     options:NSWorkspaceLaunchDefault 
                              additionalEventParamDescriptor:NULL 
                                            launchIdentifier:NULL];

这篇关于&QUOT;揭露&QUOT;在一台Mac应用效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆