iPhone - testing if a notification exists

Viewed 13741

At some point in a code one may add something like

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(doSomething) name:@"Hello" object:nil];   

How do I test if this notification is already active on the queue or has been removed, to prevent adding a duplicate?

thanks.

2 Answers
Related