Advertisement
Guest User

Untitled

a guest
Dec 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Init Darwin notifications
  2.     CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),
  3.                                     NULL,
  4.                                     LisaActions,
  5.                                     CFSTR("com.apple.iokit.hid.displayStatus"),
  6.                                     NULL,
  7.                                     CFNotificationSuspensionBehaviorDeliverImmediately);
  8.  
  9.     CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),
  10.                                     NULL,
  11.                                     LisaActions,
  12.                                     CFSTR("com.apple.springboard.lockstate"),
  13.                                     NULL,
  14.                                     CFNotificationSuspensionBehaviorDeliverImmediately);
  15.  
  16.     CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),
  17.                                     NULL,
  18.                                     LisaActions,
  19.                                     CFSTR("com.apple.springboard.pluggedin"),
  20.                                     NULL,
  21.                                     CFNotificationSuspensionBehaviorDeliverImmediately);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement