Created
September 12, 2011 20:49
-
-
Save dennda/1212363 to your computer and use it in GitHub Desktop.
This is how not to do callbacks / resolveWithTimeout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)netServiceBrowser:(NSNetServiceBrowser *)netServiceBrowser | |
didFindService:(NSNetService *)netService | |
moreComing:(BOOL)moreServicesComing { | |
netService.delegate = self; | |
[netService scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; | |
[netService resolveWithTimeout:3.0]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment