I\'m trying to get one instance of using NSNotificationCenter
with addObserver
and postNotificationName
but I can\'t work out why it w
All my code makes use of NSNotifications
like so:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateView) name:@"ScanCompleted" object:nil];
[[NSNotificationCenter defaultCenter] postNotificationName:@"ScanCompleted" object:nil];
The first one is registering the notification and the second posting of the notification.