Add a placeholder in the computer list if none are found. Retry service discovery if it fails.

This commit is contained in:
Cameron Gutman
2014-10-21 13:39:14 -04:00
parent 39186a4edf
commit 1ca787822b
4 changed files with 59 additions and 9 deletions

View File

@@ -15,5 +15,6 @@
- (id) initWithHost:(NSNetService*)host;
- (id) initWithIp:(NSString*)host;
- (id) initPlaceholder;
@end

View File

@@ -28,4 +28,13 @@
return self;
}
- (id) initPlaceholder {
self = [super init];
self.hostName = NULL;
self.displayName = @"No computers found";
return self;
}
@end