Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Init Darwin notifications
- CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),
- NULL,
- LisaActions,
- CFSTR("com.apple.iokit.hid.displayStatus"),
- NULL,
- CFNotificationSuspensionBehaviorDeliverImmediately);
- CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),
- NULL,
- LisaActions,
- CFSTR("com.apple.springboard.lockstate"),
- NULL,
- CFNotificationSuspensionBehaviorDeliverImmediately);
- CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),
- NULL,
- LisaActions,
- CFSTR("com.apple.springboard.pluggedin"),
- NULL,
- CFNotificationSuspensionBehaviorDeliverImmediately);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement