X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=TargetToggleMouseScope.m;h=863a35fda7d1df27182ff543ff8fec040ddbe59a;hp=2f03c2fb74cfda407c851f7e7166173817e73e18;hb=f9903acac24bb4be43e370d5f3eb942510f727e1;hpb=bf0910f8650c79e310a970b0d9c382ba4bed1dad diff --git a/TargetToggleMouseScope.m b/TargetToggleMouseScope.m index 2f03c2f..863a35f 100644 --- a/TargetToggleMouseScope.m +++ b/TargetToggleMouseScope.m @@ -28,9 +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]]; + jc.frontWindowOnly = !jc.frontWindowOnly; } @end