Formal protocol for the interface shared between Joysticks and JSActions, use new...
[enjoyable.git] / TargetConfig.m
index a06f3fb..055f782 100644 (file)
@@ -37,7 +37,8 @@
 }
 
 - (void)trigger {
-    [[(ApplicationController *)[[NSApplication sharedApplication] delegate] configsController] activateConfig:_config];
+    ApplicationController *ctrl = NSApplication.sharedApplication.delegate;
+    [ctrl.configsController activateConfig:_config];
 }
 
 @end