mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-26 22:10:11 +00:00
Stop using CoreData-backed objects in any non-DataManager code
This commit is contained in:
1 parent
4ba71db7b2
commit
5ea92a7b48
27 files changed
+126
-85
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user