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:
Cameron Gutman
2016-01-21 11:29:17 -05:00
parent 3076e29335
commit f8e2ca8500
6 changed files with 63 additions and 38 deletions
+3 -3
View File
@@ -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