NSRunningApplication, return list of recent used applications?

Posted by Martijn on Stack Overflow See other posts from Stack Overflow or by Martijn
Published on 2010-06-08T07:48:15Z Indexed on 2010/06/08 7:52 UTC
Read the original article Hit count: 182

Filed under:
|
|

i'm trying to get a list of the most recent used applications. NSWorkspace returns me a list of active applications and i can sort them on a few options using NSRunningApplication. see list below:

  • launchDate
  • finishedLaunching
  • processIdentifier

i dont want the lauch date but the recent 'active' date (like the way cmd-tab sorts). Does anyone knows the solution for this?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about xcode