Is there any way that I can have a method sleep until a notification is posted? This is for an asynchronous NSURLConnection. I cannot move to a synchronous connection for multiple reasons.
Is there any way that I can have a method sleep until a notification
Share
Methods cannot “sleep”; that only applies to threads. Just split the code that needs to wait out into another method and have that method called when the notification arrives.