NSRunningApplication, return list of recently used applications?

泪湿孤枕 提交于 2019-12-01 00:36:40
0xced

There is no documented way of doing this that I'm aware of, but I wrote exactly what you are asking for using private APIs: http://gist.github.com/163918

Also, see Getting the list of running applications ordered by last use for solutions that do not use private APIs.

You can look at this sample provided by Apple: http://developer.apple.com/library/mac/#samplecode/AppList/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008859-Intro-DontLinkElementID_2

In this sample, they are using NSRunningApplications Class in order to get all the bundle data about running applications.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!