tags:

views:

73

answers:

2

Hi ,

Is there any way to list all the processes currently running in Cocoa.I am developing an application in cocoa,which needs to check whether that application is already running or not before launching..Looking for a solution.....

+1  A: 

Hi, Apple have a documented route, using some Carbon API. That's QA1123. There's also libproc, which is less well-documented but is part of libSystem.

Graham Lee
+2  A: 

What exactly do you mean by "all processes"? If you just want to know what applications are running in the user's session, NSWorkspace's launchedApplications is the easiest solution.

smorgan