Hi!
Is there a way to capture the sleep event/command on macos?
i.e.: if the computer goes to sleep, or user select “sleep” on menu, i can do something on xojo running app before mac goes to sleep?
Alex
Hi!
Is there a way to capture the sleep event/command on macos?
i.e.: if the computer goes to sleep, or user select “sleep” on menu, i can do something on xojo running app before mac goes to sleep?
Alex
What you are looking for is the WillSleep notification of NSWorkSpace which can be accessed via declares (I guess macOSLib contains it) or MBS plugins.
thank you. i’ll look this declare.
i thought it was possible to use the cancelClosing event…