Import Tk 8.6.11
This commit is contained in:
@@ -19,6 +19,10 @@
|
||||
#define NSFullScreenWindowMask (1 << 14)
|
||||
#endif
|
||||
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1090
|
||||
typedef NSInteger NSModalResponse;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Let's raise a glass for the project manager who improves our lives by
|
||||
* generating deprecation warnings about pointless changes of the names
|
||||
@@ -98,10 +102,18 @@
|
||||
#define NSStringPboardType NSPasteboardTypeString
|
||||
#define NSOnState NSControlStateValueOn
|
||||
#define NSOffState NSControlStateValueOff
|
||||
// Now we are also changing names of methods!
|
||||
#define graphicsContextWithGraphicsPort graphicsContextWithCGContext
|
||||
#endif
|
||||
|
||||
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 110000
|
||||
#define NSWindowStyleMaskTexturedBackground 0
|
||||
#endif
|
||||
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < 101000
|
||||
#define GET_NSCONTEXT(context, flip) [NSGraphicsContext \
|
||||
graphicsContextWithGraphicsPort:context flipped:flip]
|
||||
#else
|
||||
#define GET_NSCONTEXT(context, flip) [NSGraphicsContext \
|
||||
graphicsContextWithCGContext:context flipped:NO]
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user