• 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: justin webster <email@hidden>
  • Date: Thu, 20 Dec 2007 12:25:48 +1300

I'm sending keyboard events to an app which sometimes ignores a key or two if it is slow to process a previous keystroke or is busy with some other task.
I want to know if the process is busy with a task (pulling events from event loop?) before sending the next key event.


I would still have a polling issue to work around of course but even slow polling would be better than the situation I have at the moment.

On 20/12/2007, at 10:41 AM, Shawn Erickson wrote:

On Dec 19, 2007 1:30 PM, John Stiles <email@hidden> wrote:

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…?

It isn't clear what problem he is trying to solve. Why does "idle" matter? What does "idle" mean to the problem he is trying to solve? etc.

-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


  • Follow-Ups:
    • Re: discovering if a process is busy
      • From: Murat Konar <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>)
 >Re: discovering if a process is busy (From: John Stiles <email@hidden>)
 >Re: discovering if a process is busy (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: Programmatically determining key equivalents with Shift key
  • Next by Date: Adding category @interface to header file causes IB to freak out?
  • Previous by thread: Re: discovering if a process is busy
  • Next by thread: Re: discovering if a process is busy
  • Index(es):
    • Date
    • Thread