Mac Programming: Command-TAB - How to Build a List of Applications?

I need to list applications that have “windows”, “icons”, regardless of whether they are docked or not. I basically need a list of applications that Command-TAB brings you. How do you do this programmatically?

Everything I tried gave me everything, or just applications that are NOT minimized. Drives me crazy. I tried CGWindowListCopyWindowInfo, NSArray *runningApps = [workspace launchedApplications]but I can’t go on to filter the list I need - all that Cmd-TAB brings you.

+5
source share
2 answers

: ,

+1

All Articles