Detect Sleep-Mode on MAC

Hi,

is it possible to detect when a Mac wakes up from the sleep mode?

I’m sure I made it in past, and if I remember correctly with the MBS plugins. Perhaps the CarbonApplicationEventsMBS class.

Where could I get the MBS plugins? I’ve worked with it before…

We have three classes for this in MBS Plugins:
WindowsPowerStateMBS: http://www.monkeybreadsoftware.net/class-windowspowerstatembs.shtml
WakeNotifierMBS: http://www.monkeybreadsoftware.net/class-wakenotifiermbs.shtml
SleepNotificationMBS: http://www.monkeybreadsoftware.net/class-sleepnotificationmbs.shtml

you can try them if you like.

Well, I don’t see a download or purchase- button are the plugins free?

Mac OS Lib has notifications that you can use to tell when its woken up
It is free

The pages I linked to are the documentation pages.
Main page with download is here:
http://www.monkeybreadsoftware.de/xojo/plugins.shtml

The plugin collection is huge, but you may find a lot of useful stuff inside.
And of course not free.