diff options
| author | Vadim Shpakovski | 2013-12-25 18:00:14 +0200 | 
|---|---|---|
| committer | Vadim Shpakovski | 2013-12-25 18:00:14 +0200 | 
| commit | b32a19ff7aa3c77a880f31a51e4e5952a5b153c1 (patch) | |
| tree | cae79c70236c5f1c04e19fd502cb73428f8c5223 /MASShortcutView.m | |
| parent | fb4ac110a085a9ed99881eada0b62dfceca5d8ab (diff) | |
| download | MASShortcut-b32a19ff7aa3c77a880f31a51e4e5952a5b153c1.tar.bz2 | |
Adding support for custom drawing.
Diffstat (limited to 'MASShortcutView.m')
| -rw-r--r-- | MASShortcutView.m | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/MASShortcutView.m b/MASShortcutView.m index 386584f..ba28e47 100644 --- a/MASShortcutView.m +++ b/MASShortcutView.m @@ -33,11 +33,16 @@  #pragma mark - ++ (Class)shortcutCellClass +{ +    return [NSButtonCell class]; +} +  - (id)initWithFrame:(CGRect)frameRect  {      self = [super initWithFrame:frameRect];      if (self) { -        _shortcutCell = [[NSButtonCell alloc] init]; +        _shortcutCell = [[[self.class shortcutCellClass] alloc] init];          _shortcutCell.buttonType = NSPushOnPushOffButton;          _shortcutCell.font = [[NSFontManager sharedFontManager] convertFont:_shortcutCell.font toSize:BUTTON_FONT_SIZE];          _enabled = YES; | 
