summaryrefslogtreecommitdiff
path: root/src/macos.m
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-05 06:54:02 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-05 06:54:24 +0300
commit044e887c586f1d4c237ce0456ab3e1aa769e210c (patch)
tree84792e612177e5edc4ffcb02038a20bb847d472c /src/macos.m
parentef46460e14c205b5117f40758caf6276e71e3287 (diff)
macOS: Compiling with SDK older than 10.13
IssueID #343
Diffstat (limited to 'src/macos.m')
-rw-r--r--src/macos.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/macos.m b/src/macos.m
index d737e9e8..d4b160fe 100644
--- a/src/macos.m
+++ b/src/macos.m
@@ -570,7 +570,11 @@ static NSMenuItem *makeMenuItems_(NSMenu *menu, MenuCommands *commands, const iM
570 deinit_String(&itemTitle); 570 deinit_String(&itemTitle);
571 [item setTarget:commands]; 571 [item setTarget:commands];
572 if (isChecked) { 572 if (isChecked) {
573#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_13
573 [item setState:NSControlStateValueOn]; 574 [item setState:NSControlStateValueOn];
575#else
576 [item setState:NSOnState];
577#endif
574 selectedItem = item; 578 selectedItem = item;
575 } 579 }
576 [item setEnabled:!isDisabled]; 580 [item setEnabled:!isDisabled];