More or less everything is in the title, I am looking for a way to get from a cocoa application, pid_t of the running dock.app.
Thanks in advance for your help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are running Mac OS X 10.6, then you can give a try to the
runningApplicationsmethod ofNSWorkspace:It will return an array of NSRunningApplication. Look up for
Dock.appand use theprocessIdentifierproperty.You can also take a look at the AppList sample application.