aboutsummaryrefslogtreecommitdiffstats
path: root/Invert.m
AgeCommit message (Collapse)Author
2021-03-07Toggle colour inversion on global hotkeyTeddy Wing
When the registered global hotkey is pressed, toggle screen colour inversion. Move the colour inversion code to the `Invert` class.
2021-03-07Register a global hotkeyTeddy Wing
Build DDHotKey as a static library so we can compile it with ARC turned on and our project with ARC turned off. Since DDHotKey is written with ARC, if I include its headers directly, I'd need to enable ARC on my project in order to compile it. Initialise an `NSApplication` to give us an environment in which to register the global hotkey. A new class `Invert` will respond to the hotkey and respond accordingly.