aboutsummaryrefslogtreecommitdiffstats
path: root/MASShortcut+UserDefaults.m
diff options
context:
space:
mode:
Diffstat (limited to 'MASShortcut+UserDefaults.m')
-rw-r--r--MASShortcut+UserDefaults.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/MASShortcut+UserDefaults.m b/MASShortcut+UserDefaults.m
index af3b5af..28fd633 100644
--- a/MASShortcut+UserDefaults.m
+++ b/MASShortcut+UserDefaults.m
@@ -3,7 +3,7 @@
@interface MASShortcutHotKey : NSObject
@property (nonatomic, readonly) NSString *userDefaultsKey;
-@property (nonatomic, readonly) void (^handler)();
+@property (nonatomic, readonly, copy) void (^handler)();
@property (nonatomic, readonly) EventHotKeyRef carbonHotKey;
@property (nonatomic, readonly) UInt32 carbonHotKeyID;
@@ -48,6 +48,13 @@
@implementation MASShortcutHotKey
+@synthesize carbonHotKeyID = _carbonHotKeyID;
+@synthesize handler = _handler;
+@synthesize userDefaultsKey = _userDefaultsKey;
+@synthesize carbonHotKey = _carbonHotKey;
+
+#pragma mark -
+
- (id)initWithUserDefaultsKey:(NSString *)userDefaultsKey handler:(void (^)())handler
{
self = [super init];