• 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: discovering if a process is busy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: discovering if a process is busy


  • Subject: Re: discovering if a process is busy
  • From: John Stiles <email@hidden>
  • Date: Wed, 19 Dec 2007 13:30:36 -0800

The Window Server knows whether a process is idle or not based on whether it is pulling events from its event loop. Unfortunately, I don't believe it shares this information—I think it's all hidden behind private SPIs. Unless they added this in Leopard…?

Shawn Erickson wrote:
On Dec 19, 2007 12:23 PM, justin webster <email@hidden> wrote:
So is there any way to figure out if a process is busy or idle?
I understand there was a way in OS9 to establish the total time a
process has been active but it apparently returns 0 in OSX.

I am basically trying to establish that a process is idle before
sending it keystrokes.

"idle" by whose definition?

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: discovering if a process is busy
      • From: justin webster <email@hidden>
    • Re: discovering if a process is busy
      • From: "Shawn Erickson" <email@hidden>
References: 
 >discovering if a process is busy (From: justin webster <email@hidden>)
 >Re: discovering if a process is busy (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: discovering if a process is busy
  • Next by Date: Re: crash on custom NSWindow subclass dealloc
  • Previous by thread: Re: discovering if a process is busy
  • Next by thread: Re: discovering if a process is busy
  • Index(es):
    • Date
    • Thread