• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
User idle time - how to determine?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Tool tips in NSTableView
  • Next by Date: Re: Type/Creator Codes
  • Previous by thread: Re: Java Cocoa Books
  • Next by thread: Icon in window title
  • Index(es):
    • Date
    • Thread