Is there an event fired when screensaver starts? Like for keychain locking:
OSStatus keychain_locked(SecKeychainEvent keychainEvent, SecKeychainCallbackInfo *info, void *context){...}
On your Mac, choose Apple menu > System Preferences, click Desktop & Screen Saver , then click Screen Saver. Click the “Show screen saver after” pop-up menu, then choose how long you want your Mac to wait before starting the screen saver when it's idle.
1 Answer. Show activity on this post. The defaults screensavers are in /System/Library/Screen Savers .
Check for Updates. The screensaver problem is clearly caused by a software bug. Wait until Apple releases a hotfix and upgrade your system to the latest version as soon as possible. Go to System Preferences, click on Software Update, and hit the Update Now button.
Finally found it — the solution is to use NSDistributedNotificationCenter and observe folowing events
Like
[[NSDistributedNotificationCenter defaultCenter]
addObserver:self
selector:@selector(screensaverStarted:)
name:@"com.apple.screensaver.didstart"
object:nil];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With