• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Q] Detecting running processes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: RE: NSScroller drawing disabled. Why?
  • Next by Date: Re: copyWithZone: -- selector not recognized
  • Previous by thread: [Q] Detecting running processes
  • Next by thread: InsertText on non editable NSTextView
  • Index(es):
    • Date
    • Thread