Let's say I have this posting from one class that fires rapidly:
[[NSNotificationCenter defaultCenter] postNotificationName:kGotData object:nil userInfo:someDictionaryObject];
And an observer from another class:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(gotData:) name:kGotData object:nil];
-(void)gotData:(NSNotification *)notification
{
NSDictionary *myUserInfo = notification.userInfo;
// more code to process userInfo, etc.
}
What if gotData take longer time to process myUserInfo than it did receive calls from the notification center?