Re: discovering if a process is busy
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