In one of my classes I post a notification:
[[NSNotificationCenter defaultCenter] postNotificationName:@"ALERTNOTI" object:self userInfo:nil];
In my app delegaate I listen:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(myMethod) name:@"ALERTNOTI" object:nil];
I use NSLog to track when I send and when the method myMethod gets called.
The method is not getting called despite me sending out the notification.
Is there something that I need to know about NSNotification? Is it tempermental?
the method you want to call via notification should be like this.