Re: [Q] Detecting running processes
Re: [Q] Detecting running processes
- Subject: Re: [Q] Detecting running processes
- From: Matt Neuburg <email@hidden>
- Date: Tue, 4 Jun 2002 11:08:14 -0700
On Mon, 3 Jun 2002 15:10:14 -0700, Mark de Jong <email@hidden> said:
>
GetCurrentProcess( &psn );
>
do {
>
GetNextProcess( returnPSN );
Were you wishing to cycle through all processes? Then you need to start the
GetNextProcess loop with process 0; are you doing that? Can't tell, from
the code you give.
On the other hand it seems to me you're doing an unnecessary dance here; if
you want to know whether a particular application is running, why not just
ask SystemEvents.app? m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes gar anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.