diff options
| author | Tomáš Znamenáček | 2014-08-05 15:34:46 +0200 |
|---|---|---|
| committer | Tomáš Znamenáček | 2015-01-07 15:05:12 +0100 |
| commit | 1c801726d35e56d3bbf4a33279213bc60935c244 (patch) | |
| tree | fad9932f1542e10daa6a1d27c1e34fe8157577a4 /Framework/MASShortcutView.m | |
| parent | 88392d1a6963cca5009b9b0c20b054ad9e911b6c (diff) | |
| download | MASShortcut-1c801726d35e56d3bbf4a33279213bc60935c244.tar.bz2 | |
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.
Diffstat (limited to 'Framework/MASShortcutView.m')
| -rw-r--r-- | Framework/MASShortcutView.m | 4 |
1 files changed, 2 insertions, 2 deletions
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]; |
