Re: Idle timer
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>) |