diff options
| author | Tomáš Znamenáček | 2014-08-05 16:24:15 +0200 | 
|---|---|---|
| committer | Tomáš Znamenáček | 2015-01-07 15:27:50 +0100 | 
| commit | 6383b054190d8bc4b7e059718cded0119d25d98c (patch) | |
| tree | a54f4139029f5fff74abd6ae60b022e2325177c7 /Framework/MASShortcutView.h | |
| parent | 1c801726d35e56d3bbf4a33279213bc60935c244 (diff) | |
| download | MASShortcut-6383b054190d8bc4b7e059718cded0119d25d98c.tar.bz2 | |
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.
Diffstat (limited to 'Framework/MASShortcutView.h')
| -rw-r--r-- | Framework/MASShortcutView.h | 3 | 
1 files changed, 2 insertions, 1 deletions
| 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); | 
