For the archives, the blog Torsten linked to had this bit of code:

double CGSSecondsSinceLastInputEvent(long evType);
double idleTime = CGSSecondsSinceLastInputEvent(-1);

Might I humbly request that when feasible, actual answers be posted to the list, and not merely links to answers? One way folks use this list is by searching the archives. The archives are maintained for a long time, but links often go stale. Twice yesterday, I found links to answers but they were dead.

_murat

On Mar 5, 2009, at 8:08 AM, Torsten Curdt wrote:

On Thu, Mar 5, 2009 at 16:35, Rich Collyer <rcoll...@ironkey.com> wrote:
Are there any hooks for tracking user activity?

I need to be able to determine if there has been any user activity (mouse,
keyboard, disk access) for a period of time.

 http://vafer.org/blog/20081118145046
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to