• 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
Sleep/power save events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Key pressed in NSTextField
  • Next by Date: Multiple windows B from window A
  • Previous by thread: Re: Using bundles
  • Next by thread: Multiple windows B from window A
  • Index(es):
    • Date
    • Thread