I know that somebody wrote a Cocoa wrapper for this, but a quick search
didn't find it. I'm sure there's more in the archives if you dig.
Oh, and if you only care about GUI processes, then it's easy: -[NSWorkspace
launchedApplications] gives you a list of all launched apps.
> -----Original Message-----
> From: cocoa-dev-bounces+tophu=email@hidden
> [mailto:cocoa-dev-bounces+tophu=email@hidden] On
> Behalf Of Scott Mitchell
> Sent: Thursday, May 18, 2006 11:52 AM
> To: Cocoa-Dev List
> Subject: How do I find out if a process is running if I have
> the process Name?
> This is not necessarily a Cocoa question, but this is for a Cocoa
> App. I have done a search for this, and have tried to figure this.
> But what I need to do is, given a process name (Application or other
> type), how can I find out if that process is running. Because if it
> is running already I need to do something different. I know this
> sounds weird, but if I was to explain the whole story behind
> this, it
> would take way to long. I thought this would be pretty easy
> to figure
> out, but I have not found anything yet.
> Scott Mitchell
> Senior Macintosh Software Engineer
> Excelsior Software
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> This email sent to email@hidden
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden