Big rename part 3: 'target' to 'output'.
[enjoyable.git] / TargetToggleMouseScope.m
diff --git a/TargetToggleMouseScope.m b/TargetToggleMouseScope.m
deleted file mode 100644 (file)
index 0413b73..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-//
-//  TargetToggleMouseScope.m
-//  Enjoy
-//
-//  Created by Yifeng Huang on 7/28/12.
-//
-
-#import "TargetToggleMouseScope.h"
-
-#import "ApplicationController.h"
-#import "NJInputController.h"
-
-@implementation TargetToggleMouseScope
-
-+ (NSString *)serializationCode {
-    return @"mtoggle";
-}
-
-- (NSDictionary *)serialize {
-    return @{ @"type": @"mtoggle" };
-}
-
-+ (Target *)targetDeserialize:(NSDictionary *)serialization
-                  withMappings:(NSArray *)mappings {
-       TargetToggleMouseScope *target = [[TargetToggleMouseScope alloc] init];
-       return target;
-}
-- (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;
-    NJInputController *jc = ac.inputController;
-    jc.frontWindowOnly = !jc.frontWindowOnly;
-}
-
-@end