FROM : M. Uli Kusterer
DATE : Sun May 01 14:10:46 2005
At 8:43 Uhr +0000 26.04.2005, Mike Lewis wrote:
>I implemented system idle timer according to the advice given here
>some months ago
>(http://www.cocoabuilder.com/archive/message/cocoa/2004/10/27/120354),
>but unfortunately this piece of code crashes on Tiger. I also tried
>to use CGSSecondsSinceLastInputEvent, as pointed out by Evan, but it
>gives me linker error: "undefined symbols
>CGSSecondsSinceLastInputEvent". I inserted the prototype and tried
>to link ApplicationServices framework but still can't get rid of
>this error. Is there something obvious I'm missing?
What exactly are you trying to do? If you're mainly interested in
doing something after the user's been idle for a while, your best bet
may be using a Carbon EventLoopIdleTimer. I wrote a wrapper class
around that. If it's not on my web site, let me know and I'll put it
up or send you a link.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
DATE : Sun May 01 14:10:46 2005
At 8:43 Uhr +0000 26.04.2005, Mike Lewis wrote:
>I implemented system idle timer according to the advice given here
>some months ago
>(http://www.cocoabuilder.com/archive/message/cocoa/2004/10/27/120354),
>but unfortunately this piece of code crashes on Tiger. I also tried
>to use CGSSecondsSinceLastInputEvent, as pointed out by Evan, but it
>gives me linker error: "undefined symbols
>CGSSecondsSinceLastInputEvent". I inserted the prototype and tried
>to link ApplicationServices framework but still can't get rid of
>this error. Is there something obvious I'm missing?
What exactly are you trying to do? If you're mainly interested in
doing something after the user's been idle for a while, your best bet
may be using a Carbon EventLoopIdleTimer. I wrote a wrapper class
around that. If it's not on my web site, let me know and I'll put it
up or send you a link.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
| Related mails | Author | Date |
|---|---|---|
| Mike Lewis | Apr 26, 10:43 | |
| Mike Paquette | Apr 30, 02:06 | |
| Dan Messing | May 1, 02:34 | |
| M. Uli Kusterer | May 1, 14:10 |






Cocoa mail archive

