Re: User In-Activity hook? And a request
Re: User In-Activity hook? And a request
- Subject: Re: User In-Activity hook? And a request
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 10 Mar 2009 07:23:49 +0700
On 6 Mar 2009, at 02:24, Shawn Erickson <email@hidden> wrote:
On Thu, Mar 5, 2009 at 8:58 AM, m <email@hidden> wrote:
For the archives, the blog Torsten linked to had this bit of code:
double CGSSecondsSinceLastInputEvent(long evType);
double idleTime = CGSSecondsSinceLastInputEvent(-1);
You should note that those are private / undocumented API ...so you
shouldn't use them.
This might be undocumented (at least I failed to find any
documentation) but it's use is highly recommended by Apple: " Instead
[of NXIdleTime], we strongly encourage developers to make use of the
CGSSecondsSinceLastInputEvent API."
Quoted from: /System/Library/Frameworks/IOKit.framework/Versions/A/
Headers/hidsystem/event_status_driver.h on 10.5.6.
Gerriet.
_______________________________________________
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