From 9a223134d0b2f5dabf5dcd00f07c0a252c73e516 Mon Sep 17 00:00:00 2001 From: Tomáš Znamenáček Date: Wed, 7 Jan 2015 15:58:13 +0100 Subject: Fixed MASShortcutView initialization errors after rebase. --- Framework/MASShortcutView.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Framework') 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]; } -- cgit v1.2.3