• 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
Re: User In-Activity hook? And a request
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: User In-Activity hook? And a request
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: Properly symbol fonts handling in Cocoa
  • Next by Date: Re: Inducing a crash?
  • Previous by thread: Re: Is UITableView more memory efficient than UIScrollView?
  • Next by thread: Re: User In-Activity hook? And a request
  • Index(es):
    • Date
    • Thread