I'm currently wondering if it is possible, just like on iOS the somehow have a delegate called once OSX returns from hibernate mode, e.g. on opening the MacBook from sleeping?
I had a look at the NSApplication delegates
here: Apple NSApplicationDelegate Protocol but couldn't find anything helpful.
On iOS the closest thing that comes to it is may the - applicationWillEnterForeground:
that is documented in the Apple UIApplicationDelegate Protocol.
Is there any way to do this?
UPDATE
Reliable way to get a machine wake + user logged in notification in Cocoa? exactly solves this question!
[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self
selector:@selector(wakeFromSleep:)
name:NSWorkspaceDidWakeNotification
object:nil];