From a984e2dd951bcbfe5e3e6374213eb9a5fd5423cf Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 1 Dec 2016 06:58:56 -0500 Subject: Able to get a shortcut from the MASShortcutView Fuck damn it finally freaking works! Damn, just had to take a 1.5 hour nap after that. We're finally able to extract a shortcut out of the MASShortcutView. After trying a whole bunch of different things, I ultimately tried opening the debugger and figured out that for whatever reason the bindings weren't getting created and because of that my shortcut wasn't getting saved in the user defaults. Couldn't figure out how to get the binding to work even after includes and whatnot. Finally decided screw it I'm going to subclass the view and get the shortcut and store it in `NSUserDefaults` myself. So that's what we're going to do and this is the first step to getting that working. Hoo boy. Definitely need to vaccum the code after this. --- Low Battery Yup/ShortcutView.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Low Battery Yup/ShortcutView.h (limited to 'Low Battery Yup/ShortcutView.h') diff --git a/Low Battery Yup/ShortcutView.h b/Low Battery Yup/ShortcutView.h new file mode 100644 index 0000000..c30b08a --- /dev/null +++ b/Low Battery Yup/ShortcutView.h @@ -0,0 +1,13 @@ +// +// ShortcutView.h +// Low Battery Yup.d +// +// Created by TW on 12/1/16. +// Copyright (c) 2016 TW. All rights reserved. +// + +#import + +@interface ShortcutView : MASShortcutView + +@end -- cgit v1.2.3