Re: Finding application's idle time?
Re: Finding application's idle time?
- Subject: Re: Finding application's idle time?
- From: Eric Schlegel <email@hidden>
- Date: Tue, 22 Nov 2005 07:58:51 -0800
On Nov 22, 2005, at 3:59 AM, Uli Kusterer wrote:
Am 22.11.2005 um 11:38 schrieb Jonathan del Strother:
I need to know how long it is since my app received user input
(mouse clicks or keyboard), so I can trigger an idle behaviour mode.
Is there any inbuilt way of doing so, or am I best to just create
a new timer on each user event? Is there a bottleneck anywhere
that gets called on all user events, so I could do this in one
place only?
Use a Carbon Idle Timer. I wrote a wrapper class around it that
you may want to use.
That may work for some cases, but I don't think I'd recommend it,
because the Carbon idle timer implementation also assumes that you're
using Carbon to handle control tracking, and probably won't work
properly in a Cocoa app in that case. YMMV; if it works sufficiently
well for your needs, I guess it's OK.
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden