Stop using CoreData-backed objects in any non-DataManager code

This commit is contained in:
Cameron Gutman
2015-12-01 20:31:24 -08:00
parent 4ba71db7b2
commit 5ea92a7b48
27 changed files with 126 additions and 85 deletions
+2 -2
View File
@@ -7,7 +7,7 @@
//
#import "MDNSManager.h"
#import "Host.h"
#import "TemporaryHost.h"
#import "DataManager.h"
@implementation MDNSManager {
@@ -50,7 +50,7 @@ static NSString* NV_SERVICE_TYPE = @"_nvstream._tcp";
DataManager* dataMan = [[DataManager alloc] init];
for (NSNetService* service in services) {
if (service.hostName != nil) {
Host* host = [dataMan createHost];
TemporaryHost* host = [dataMan createHost];
host.activeAddress = host.address = service.hostName;
host.name = host.address;
[hosts addObject:host];