Mac被合上会触发什么系统事件吗?
就是如何知道Mac被合上(休眠或关屏了),有什么系统事件?Apple Script , Objective-C或Python的实现都可以。
谢谢咯。
python mac objective-c macosx cocoa
柴刀的引导
10 years, 4 months ago
Answers
IORegisterForSystemPower
https://developer.apple.com/library/mac/qa/qa1340/_index.html
impking
answered 10 years, 4 months ago