X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=TargetToggleMouseScope.m;h=863a35fda7d1df27182ff543ff8fec040ddbe59a;hp=968237cfa1bf2d1ef7c1ab1a5c221dccc783c42d;hb=f41f770d67370cbd71002515d81c0842b50cb04b;hpb=51336622a1df8de5dd8aaec0972b9b04292fd88d diff --git a/TargetToggleMouseScope.m b/TargetToggleMouseScope.m index 968237c..863a35f 100644 --- a/TargetToggleMouseScope.m +++ b/TargetToggleMouseScope.m @@ -28,10 +28,9 @@ - (void)trigger { // FIXME: It's hacky to get at the controller this way, but it's // also hacky to pass it. Shouldn't need to do either. - ApplicationController *ac = [NSApplication sharedApplication].delegate; + ApplicationController *ac = NSApplication.sharedApplication.delegate; JoystickController *jc = ac.jsController; - [jc setFrontWindowOnly: ![jc frontWindowOnly]]; - printf("Front window only: %d\n", [jc frontWindowOnly]); + jc.frontWindowOnly = !jc.frontWindowOnly; } @end