Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: discovering if a process is busy



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.