projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Publish activated/deactivated as notifications.
[enjoyable.git]
/
TargetConfig.m
diff --git
a/TargetConfig.m
b/TargetConfig.m
index
e9c374e
..
055f782
100644
(file)
--- a/
TargetConfig.m
+++ b/
TargetConfig.m
@@
-20,7
+20,7
@@
- (NSDictionary *)serialize {
return _config
? @{ @"type": @"cfg", @"name": _config.name }
- (NSDictionary *)serialize {
return _config
? @{ @"type": @"cfg", @"name": _config.name }
- :
@{}
;
+ :
nil
;
}
+ (TargetConfig *)targetDeserialize:(NSDictionary *)serialization
}
+ (TargetConfig *)targetDeserialize:(NSDictionary *)serialization
@@
-37,7
+37,8
@@
}
- (void)trigger {
}
- (void)trigger {
- [[(ApplicationController *)[[NSApplication sharedApplication] delegate] configsController] activateConfig:_config];
+ ApplicationController *ctrl = NSApplication.sharedApplication.delegate;
+ [ctrl.configsController activateConfig:_config];
}
@end
}
@end