From 1c801726d35e56d3bbf4a33279213bc60935c244 Mon Sep 17 00:00:00 2001 From: Tomáš Znamenáček Date: Tue, 5 Aug 2014 15:34:46 +0200 Subject: Converted keycode macros to plain functions. Plain functions are less prone to bugs, the compiler understands them better and can offer better error messages, and plain functions can be refactored more easily. --- Framework/MASShortcutView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Framework/MASShortcutView.m') diff --git a/Framework/MASShortcutView.m b/Framework/MASShortcutView.m index dd75729..0212271 100644 --- a/Framework/MASShortcutView.m +++ b/Framework/MASShortcutView.m @@ -192,7 +192,7 @@ - (void)drawRect:(CGRect)dirtyRect { if (self.shortcutValue) { - [self drawInRect:self.bounds withTitle:MASShortcutChar(self.recording ? kMASShortcutGlyphEscape : kMASShortcutGlyphDeleteLeft) + [self drawInRect:self.bounds withTitle:NSStringFromMASKeyCode(self.recording ? kMASShortcutGlyphEscape : kMASShortcutGlyphDeleteLeft) alignment:NSRightTextAlignment state:NSOffState]; CGRect shortcutRect; @@ -209,7 +209,7 @@ else { if (self.recording) { - [self drawInRect:self.bounds withTitle:MASShortcutChar(kMASShortcutGlyphEscape) alignment:NSRightTextAlignment state:NSOffState]; + [self drawInRect:self.bounds withTitle:NSStringFromMASKeyCode(kMASShortcutGlyphEscape) alignment:NSRightTextAlignment state:NSOffState]; CGRect shortcutRect; [self getShortcutRect:&shortcutRect hintRect:NULL]; -- cgit v1.2.3