diff options
| author | Teddy Wing | 2016-11-17 07:03:04 -0500 |
|---|---|---|
| committer | Teddy Wing | 2016-11-17 07:03:04 -0500 |
| commit | aa9116d7a6a361edccb4db8d8b6db0e0c9786a29 (patch) | |
| tree | 6955a7a244e019bd667b8aaa5fc4d502384a5820 | |
| parent | 15e808d900c5fe79b32efb2f01b1782dc114674e (diff) | |
| download | MASShortcut-aa9116d7a6a361edccb4db8d8b6db0e0c9786a29.tar.bz2 | |
MASShortcutView.m: Ignore VoiceOver code block for <= 10.8
Since the identifiers used in this block of code aren't defined until OS
X 10.9 (`NSAccessibilityPriorityKey` et al.), they result in compilation
errors.
In order to remove these errors, add a preprocessor flag that removes
this whole bit if we're using an earlier OS than 10.9.
| -rw-r--r-- | Framework/MASShortcutView.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Framework/MASShortcutView.m b/Framework/MASShortcutView.m index 9b27a10..c5a55bd 100644 --- a/Framework/MASShortcutView.m +++ b/Framework/MASShortcutView.m @@ -137,6 +137,7 @@ static const CGFloat MASButtonFontSize = 11; [self activateResignObserver:_recording]; [self setNeedsDisplay:YES]; + #if defined(AVAILABLE_MAC_OS_X_VERSION_10_9_AND_LATER) // Give VoiceOver users feedback on the result. Requires at least 10.9 to run. // We’re silencing the “tautological compare” warning here so that if someone // takes the naked source files and compiles them with -Wall, the following @@ -155,6 +156,7 @@ static const CGFloat MASButtonFontSize = 11; NSAccessibilityPostNotificationWithUserInfo(self, NSAccessibilityAnnouncementRequestedNotification, announcementInfo); } #pragma clang diagnostic pop + #endif } - (void)setShortcutValue:(MASShortcut *)shortcutValue |
