NSRunningApplication, return list of recently used applications?

前端 未结 2 1391
孤街浪徒
孤街浪徒 2021-01-06 18:27

I\'m trying to get a list of the most recently used applications. NSWorkspace returns a list of active applications and I can sort them on a few options using <

2条回答
  •  别那么骄傲
    2021-01-06 19:30

    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.

提交回复
热议问题