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
+3 -3
View File
@@ -9,7 +9,7 @@
#import "UIComputerView.h"
@implementation UIComputerView {
Host* _host;
TemporaryHost* _host;
UIButton* _hostButton;
UILabel* _hostLabel;
UILabel* _hostStatus;
@@ -72,7 +72,7 @@ static const int LABEL_DY = 20;
return self;
}
- (id) initWithComputer:(Host*)host andCallback:(id<HostCallback>)callback {
- (id) initWithComputer:(TemporaryHost*)host andCallback:(id<HostCallback>)callback {
self = [self init];
_host = host;
_callback = callback;
@@ -123,7 +123,7 @@ static const int LABEL_DY = 20;
self.frame = CGRectMake(x, y, width, height);
}
- (void) updateContentsForHost:(Host*)host {
- (void) updateContentsForHost:(TemporaryHost*)host {
_hostLabel.text = _host.name;
_hostLabel.textColor = [UIColor whiteColor];
[_hostLabel sizeToFit];