Re: 4 notifications for visual Apps
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.