• 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: Idle timer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Idle timer


  • Subject: Re: Idle timer
  • From: Collin <email@hidden>
  • Date: Tue, 20 Jan 2004 12:48:55 -0500

Try using NSTimer

I would let it execute every X number of minutes and check to see if
there had been any activity. Of course, you'll have to put those hooks
in to set a flag whenever the user invokes an action. There might be
better ways to do this, but that's how I would approach it.



+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds
target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo
repeats:(BOOL)repeats


On Jan 20, 2004, at 10:32 AM, Arthur VIGAN wrote:

> Hi,
>
> how can I launch a process when the user has been idle for a certain
> amount of time? I looked in the Cocoa archives, but there is nothing
> like this... In the Carbon dev list, I found posts talking about the
> InstallEventLoopTimer() function, but is it easy to miw Cocoa and
> Carbon code?
>
> Thanks in advance,
>
> -- Arthur
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Idle timer (From: Arthur VIGAN <email@hidden>)

  • Prev by Date: Re: Has anyone compared Cocoa and DOTNET?
  • Next by Date: Re: [SOLVED] Re: Panther broke CFUserNotificationDisplayNotice?
  • Previous by thread: Idle timer
  • Next by thread: Binding and Document-based application
  • Index(es):
    • Date
    • Thread