X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=TargetToggleMouseScope.m;h=863a35fda7d1df27182ff543ff8fec040ddbe59a;hp=2f03c2fb74cfda407c851f7e7166173817e73e18;hb=f563321aec9e13b8479ab3b890a9179f095a8b17;hpb=e24d2ce8323c713180d44933ca72cdb96ac356cd 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