Do you know of a comprehensive list of all possible NSNotifications? Please let me know. Thanks.
That's not a very helpful answer, IMHO - lots of notifications are hard to find, and some are undocumented.
When I need to see what's actually there, I use something like this:
// inside your Application Delegate / main method / similar:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onNotification:) name:nil object:nil];
-(void)onNotification:(NSNotification*)notification
{
NSLog(@"Notification name is %@ sent by %@",[notification name], [[notification object] description] );
}
A notification name can be any arbitrary string, so the number of possible notifications is effectively unlimited. The documentation for most classes will list the notifications they are guaranteed to send at given times.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With