From 6383b054190d8bc4b7e059718cded0119d25d98c Mon Sep 17 00:00:00 2001 From: Tomáš Znamenáček Date: Tue, 5 Aug 2014 16:24:15 +0200 Subject: Introduced a standalone MASShortcutValidator class to validate shortcuts. It’s a natural simplification of the MASShortcut class. All MASShortcutView objects use a shared validator by default, but can be reconfigured to use a different validator if needed through the shortcutValidator property. --- Framework/MASShortcutView.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Framework/MASShortcutView.h') diff --git a/Framework/MASShortcutView.h b/Framework/MASShortcutView.h index 9f94bf5..5d788b9 100644 --- a/Framework/MASShortcutView.h +++ b/Framework/MASShortcutView.h @@ -1,4 +1,4 @@ -@class MASShortcut; +@class MASShortcut, MASShortcutValidator; typedef enum { MASShortcutViewAppearanceDefault = 0, // Height = 19 px @@ -10,6 +10,7 @@ typedef enum { @interface MASShortcutView : NSView @property (nonatomic, strong) MASShortcut *shortcutValue; +@property (nonatomic, strong) MASShortcutValidator *shortcutValidator; @property (nonatomic, getter = isRecording) BOOL recording; @property (nonatomic, getter = isEnabled) BOOL enabled; @property (nonatomic, copy) void (^shortcutValueChange)(MASShortcutView *sender); -- cgit v1.2.3