“暴露” 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有用于此目的的 API。据我所知,唯一的方法是使用
NSWorkspace
启动 Exposé 应用程序(Mac OS X 版本 <10.7)或 Mission Control 应用程序(Mac OS X 版本 >= 10.7)。此代码使用
com.apple.exposelauncher
捆绑包 ID,该 ID 对于随 Exposé 附带的所有 Mac OS X 版本都相同: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é: