I've tried registering for NSWorkspaceDidWakeNotification
with [NSNotificationCenter defaultCenter]
, but it never fires when my MacBook Pro wakes from sleep. Other notifications that I register for fire, so it's not an issue with how I'm registering for it.
Basically I need to get notified when a user's machine has woken from sleep, and the user has logged back in, or the machine has woken and the user is back in their account, in the case that the login screen wasn't displayed to them. If I have to handle that with multiple notifications, that's fine as well.
Any thoughts?
Thanks!
Cody