From 1cebcd3acf013b2b09087750e79dda7b90e93b5f Mon Sep 17 00:00:00 2001 From: Tomáš Znamenáček Date: Tue, 5 Aug 2014 16:42:31 +0200 Subject: Removed -data and shortcutWithData: from MASShortcut. Using NSKeyedUnarchiver and NSKeyedArchiver directly is almost the same amount of typing and it’s much clearer what goes on. --- Framework/MASShortcut.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'Framework/MASShortcut.h') diff --git a/Framework/MASShortcut.h b/Framework/MASShortcut.h index 6873dd9..aa3dfb0 100644 --- a/Framework/MASShortcut.h +++ b/Framework/MASShortcut.h @@ -9,12 +9,10 @@ @property (nonatomic, readonly) NSString *keyCodeString; @property (nonatomic, readonly) NSString *keyCodeStringForKeyEquivalent; @property (nonatomic, readonly) NSString *modifierFlagsString; -@property (nonatomic, readonly) NSData *data; - (instancetype)initWithKeyCode:(NSUInteger)code modifierFlags:(NSUInteger)flags; + (instancetype)shortcutWithKeyCode:(NSUInteger)code modifierFlags:(NSUInteger)flags; + (instancetype)shortcutWithEvent:(NSEvent *)anEvent; -+ (instancetype)shortcutWithData:(NSData *)aData; @end -- cgit v1.2.3