User idle time - how to determine?
User idle time - how to determine?
- Subject: User idle time - how to determine?
- From: Max Horn <email@hidden>
- Date: Wed, 23 May 2001 19:47:02 +0200
In a instant messaging (="chat ;) cocoa application I work on, i want
to implement an auto-away mode. This is a bit similiar to a screen
saver, as it measures the time there has been no user activty, and if
a certain treshold is surpassed, it will set the online status of the
user to "away". this is a very helpful feature indeed.
Now I wondered what would be the best way to measure this. Can I
maybe hook into the screensaver API somehow to be informed about this
(I never fiddled with this API, so i have no clue)? Or should I
listen to all incoming events somehow, and reset my "idle counter"
whenever a mouse-moved or key-down event is coming in? I see that I
can turn on mouse-moved events, but it seems a bit wasteful to me to
get zillions of mm-events only for this ;)
Any input is appreciated,
Max
--
-----------------------------------------------
Max Horn
C++/ObjC/Java Developer
email: <
mailto:email@hidden>
phone: (+49) 6151-494890