• 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: Michael Ash <email@hidden>
  • Date: Thu, 5 Mar 2009 13:23:29 -0500

On Thu, Mar 5, 2009 at 11: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);
>
> 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.

Copyright issues make that less easy than it ought to be, and it's
mostly pointless, as archive.org will recover your old links in 99% of
the cases. A link to a long, detailed explanation is *vastly* better
than a quickie summary posted inline.

In any case, using the above private API is a bad idea. This post
shows a way that uses only public APIs

http://www.cocoabuilder.com/archive/message/cocoa/2004/10/27/120354

Mike
_______________________________________________

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: Rich Collyer <email@hidden>
References: 
 >User In-Activity hook? (From: Rich Collyer <email@hidden>)
 >Re: User In-Activity hook? (From: Torsten Curdt <email@hidden>)
 >Re: User In-Activity hook? And a request (From: m <email@hidden>)

  • Prev by Date: Re: Checking for NULL (was "Re: Can't get setDelegate to work...")
  • Next by Date: NSString leak or RedHerring again?
  • Previous by thread: Re: User In-Activity hook? And a request
  • Next by thread: Re: User In-Activity hook? And a request
  • Index(es):
    • Date
    • Thread