osx - Need to get the list of currently running applications visible to the user on MAC -
i developing in mac , need list of active applications running, mean ones have actual window , user can see/close/minimize/maximize.
i tried using nsworkspace runningapplications function, gives long list of applications (most lists hidden applications) need ones has window ui.
i've used suggestion in following post windows below dock , worked fine in case if dock visible: cgwindowlistcreate generates hugely long list of windows
however when dock hidden solution doesn't work.
does have idea how list of running applications visible user on mac?
it may you. try this
for (nsrunningapplication *app in [[nsworkspace sharedworkspace] runningapplications]) { nslog(@"%@",[app localizedname]); }
Comments
Post a Comment