Created
October 16, 2013 15:57
-
-
Save breeno/7010222 to your computer and use it in GitHub Desktop.
Revisions
-
breeno created this gist
Oct 16, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), NULL, notificationCenterHookProc, NULL, NULL, CFNotificationSuspensionBehaviorDeliverImmediately); void notificationCenterHookProc (CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) { NSLog(@"name: %@ userInfo:%@", name, userInfo); }