diff options
Diffstat (limited to 'Framework')
| -rw-r--r-- | Framework/MASShortcutView.m | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Framework/MASShortcutView.m b/Framework/MASShortcutView.m index cdb7855..0ae8f6c 100644 --- a/Framework/MASShortcutView.m +++ b/Framework/MASShortcutView.m @@ -46,12 +46,6 @@ NSString *const MASShortcutBinding = @"shortcutValue"; self = [super initWithCoder:coder]; if (self) { [self commonInit]; - _shortcutCell = [[[self.class shortcutCellClass] alloc] init]; - _shortcutCell.buttonType = NSPushOnPushOffButton; - _shortcutCell.font = [[NSFontManager sharedFontManager] convertFont:_shortcutCell.font toSize:BUTTON_FONT_SIZE]; - _shortcutValidator = [MASShortcutValidator sharedValidator]; - _enabled = YES; - [self resetShortcutCellStyle]; } return self; } @@ -61,6 +55,7 @@ NSString *const MASShortcutBinding = @"shortcutValue"; _shortcutCell = [[[self.class shortcutCellClass] alloc] init]; _shortcutCell.buttonType = NSPushOnPushOffButton; _shortcutCell.font = [[NSFontManager sharedFontManager] convertFont:_shortcutCell.font toSize:BUTTON_FONT_SIZE]; + _shortcutValidator = [MASShortcutValidator sharedValidator]; _enabled = YES; [self resetShortcutCellStyle]; } |
