Re: discovering if a process is busy
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 16:27:23 -0800
The docs do say that CGPostKeyboardEvent is deprecated in Leopard. You
might check to see if the modern version works better.
However, I wouldn't be shocked to find out that Pro Tools is dropping
events if it receives them at inopportune times…
justin webster wrote:
it sounds like a poorly written app. What app is it?
well you're right there. it's a bit of a mess.
Pro Tools.
Perhaps I've mis-diagnosed the problem it. it certainly seems like one
or two key events get missed while the app is busy reading stuff into
memory.
I am using CGPostKeyboardEvent.
is there a better way of achieving this with a different API?
justin
On 20/12/2007, at 1:09 PM, Murat Konar wrote:
On Dec 19, 2007, at 3:25 PM, justin webster wrote:
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.
That seems wrong. Are you sure this is what's going on?
Mac apps normally remove key events from a queue. So if an app is
busy, the events stay in the queue until the app can get them. If
this app is missing events because it's busy, it means that it is
purposely throwing some events away, or that it's not using events at
all but merely polling the keyboard state. Either way, it sounds like
a poorly written app. What app is it?
_murat
_______________________________________________
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