diff options
| author | Teddy Wing | 2021-03-07 01:44:50 +0100 |
|---|---|---|
| committer | Teddy Wing | 2021-03-07 01:44:50 +0100 |
| commit | ee7e780efde86970e68e6ab4af6aa1b11d4ac88b (patch) | |
| tree | 7ec7bd79445df573eed9d77c181e2610432d0415 /Invert.h | |
| parent | 1b29751aca6376d7392356ed8e53048952150606 (diff) | |
| download | Re-Good-Catalina-Invert-Colours-ee7e780efde86970e68e6ab4af6aa1b11d4ac88b.tar.bz2 | |
Register a global hotkey
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.
Diffstat (limited to 'Invert.h')
| -rw-r--r-- | Invert.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Invert.h b/Invert.h new file mode 100644 index 0000000..c84685e --- /dev/null +++ b/Invert.h @@ -0,0 +1,7 @@ +#import <Cocoa/Cocoa.h> + +@interface Invert : NSObject + +- (void)toggleInvertColors:(NSEvent *)event; + +@end |
