summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXConstants.h
diff options
context:
space:
mode:
authorculler <culler>2018-10-21 21:41:34 (GMT)
committerculler <culler>2018-10-21 21:41:34 (GMT)
commit8ea711d0aea88cecedd9fe9f32436e376da780ee (patch)
tree64c93e8884d577522f73f6b9addda184b4044c6c /macosx/tkMacOSXConstants.h
parent56a9c541052f8779ea0124308d27a12041e7cfbe (diff)
downloadtk-8ea711d0aea88cecedd9fe9f32436e376da780ee.zip
tk-8ea711d0aea88cecedd9fe9f32436e376da780ee.tar.gz
tk-8ea711d0aea88cecedd9fe9f32436e376da780ee.tar.bz2
Deal with Mojave deprecations and remove unneeded code.
Diffstat (limited to 'macosx/tkMacOSXConstants.h')
-rw-r--r--macosx/tkMacOSXConstants.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/macosx/tkMacOSXConstants.h b/macosx/tkMacOSXConstants.h
index bb2206e..3f0d306 100644
--- a/macosx/tkMacOSXConstants.h
+++ b/macosx/tkMacOSXConstants.h
@@ -21,10 +21,19 @@
* of constants.
*/
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
+#define kCTFontDefaultOrientation kCTFontOrientationDefault
+#define kCTFontVerticalOrientation kCTFontOrientationVertical
+#endif
+
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
#define NSOKButton NSModalResponseOK
#endif
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
+#define kCTFontUserFixedPitchFontType kCTFontUIFontUserFixedPitch
+#endif
+
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
#define NSAppKitDefined NSEventTypeAppKitDefined
#define NSApplicationActivatedEventType NSEventSubtypeApplicationActivated
@@ -93,4 +102,14 @@
#define NSFullScreenWindowMask NSWindowStyleMaskFullScreen
#endif
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
+#define NSStringPboardType NSPasteboardTypeString
+#define NSOnState NSControlStateValueOn
+#define NSOffState NSControlStateValueOff
+// Now we are also changing names of methods!
+#define graphicsContextWithGraphicsPort graphicsContextWithCGContext
#endif
+
+
+#endif
+