mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-28 06:50:12 +00:00
We can't hold onto managed objects in our temporary objects because they can disappear from under us, so do the lookup when we propagate values
This commit is contained in:
1 parent
3076e29335
commit
f8e2ca8500
6 files changed
+63
-38
No files matched your search
@@ -10,14 +10,14 @@
|
||||
#import "Utils.h"
|
||||
#import "Host.h"
|
||||
|
||||
@class DataManager;
|
||||
|
||||
@interface TemporaryHost : NSObject
|
||||
|
||||
@property (nonatomic) BOOL online;
|
||||
@property (nonatomic) PairState pairState;
|
||||
@property (nonatomic, nullable) NSString * activeAddress;
|
||||
|
||||
@property (nullable, nonatomic) Host* parent;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@property (nonatomic, retain) NSString *address;
|
||||
@@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
- (NSComparisonResult)compareName:(TemporaryHost *)other;
|
||||
|
||||
- (void) propagateChangesToParent;
|
||||
- (void) propagateChangesToParent:(Host*)host withDm:(DataManager*)dm;
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
|
||||
Reference in new issue
Block a user