NSNotificationCenter - Way to wait for a notification to be posted without blocking main thread?
问题 I'm using an AFNetworking client object which makes an asynchronous request for an XML document and parses it. Also using NSNotificationCenter to post a notification when the document has finished parsing. Is there a way to wait for a notification to be posted without blocking the main thread? E.g code: -(void)saveConfiguration:(id)sender { TLHTTPClient *RESTClient = [TLHTTPClient sharedClient]; // Performs the asynchronous fetching....this works. [RESTClient fetchActiveUser: