Sleep/power save events
Sleep/power save events
- Subject: Sleep/power save events
- From: Brian Hook <email@hidden>
- Date: Tue, 13 Aug 2002 12:59:02 -0700
Is there a Cocoa compatible way of detecting power save entry/exit
and/or screen saver activate/de-activate events?
Our application right now only does dirty rectangle updates, but runs
into a problem when the system goes into sleep mode and is restored.
When this happens, the application is oblivious and has no idea it needs
to redraw the entire window instead of just the changed areas. So on
screen saver exit, I need to issue a "redraw all" event to my app.
Any suggestions on handling this is appreciated. I looked at the Darwin
docs on power save, but those involve hooking into the CF application
loop instead of leveraging Cocoa (alternatively, if someone can explain
how to grab CF events in a Cocoa app, that would work as well I
suppose).
Thanks,
Brian
_______________________________________________
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.