• 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: 4 notifications for visual Apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 4 notifications for visual Apps


  • Subject: Re: 4 notifications for visual Apps
  • From: email@hidden
  • Date: Sat, 16 Feb 2002 11:14:05 -0800

since my application only displays things visually, I would like to
pause and resume the program execution for the following two scenarios.

1) dock hiding/showing
2) energy saver turns off the screen/waking the screen up

is it possible to get notification when those 4 event happens
from within an application?

NSApplication.h provides:

APPKIT_EXTERN NSString *NSApplicationDidHideNotification;
APPKIT_EXTERN NSString *NSApplicationDidUnhideNotification;

I am not aware of any public API to find out whether or when the screen saver kicks in or the enery saver turns off the monitor. It may exist, but I'm not aware of it. :->
It seems like a somewhat strange thing to want to do in the first place; are you sure you're barking up the right tree?

Ben Haller
Stick Software
_______________________________________________
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: Cursor zone
  • Next by Date: Re: PB Save As ASCII?
  • Previous by thread: 4 notifications for visual Apps
  • Next by thread: Deadlock on application quit -- Control enable/disable
  • Index(es):
    • Date
    • Thread