Last active
December 13, 2015 17:29
-
-
Save steipete/4948697 to your computer and use it in GitHub Desktop.
Hook onto NSNotificationCenter to see all notifications.
This file contains 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 characters
[[NSNotificationCenter defaultCenter] addObserverForName:nil object:nil queue:nil usingBlock:^(NSNotification *note) { | |
NSLog(@"%@: %@", note.name, note.userInfo); | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use CF at first for that, but turns out even the modern block-based API supports capturing everything (don't do this in production!)