Go to the documentation of this file.
25 #include <AvailabilityMacros.h>
27 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
28 #error VTK requires the Mac OS X 10.6 SDK or later
31 #if MAC_OS_X_VERSION_MIN_REQUIRED < 1068
32 #error VTK requires a deployment target of Mac OS X 10.6.8 or later
37 #define __has_feature(x) 0
40 #if (MAC_OS_X_VERSION_MAX_ALLOWED < 101200) && !defined(VTK_DONT_MAP_10_12_ENUMS)
42 #define NSWindowStyleMaskBorderless NSBorderlessWindowMask
43 #define NSWindowStyleMaskTitled NSTitledWindowMask
44 #define NSWindowStyleMaskClosable NSClosableWindowMask
45 #define NSWindowStyleMaskMiniaturizable NSMiniaturizableWindowMask
46 #define NSWindowStyleMaskResizable NSResizableWindowMask
48 #define NSEventModifierFlagShift NSShiftKeyMask
49 #define NSEventModifierFlagControl NSControlKeyMask
50 #define NSEventModifierFlagOption NSAlternateKeyMask
51 #define NSEventModifierFlagCommand NSCommandKeyMask
53 #define NSEventTypeKeyDown NSKeyDown
54 #define NSEventTypeKeyUp NSKeyUp
55 #define NSEventTypeApplicationDefined NSApplicationDefined
56 #define NSEventTypeFlagsChanged NSFlagsChanged
61 #if defined(__OBJC_GC__)
62 #define VTK_OBJC_IS_MRR 0
63 #define VTK_OBJC_IS_ARC 0
64 #define VTK_OBJC_IS_GC 1
65 #elif __has_feature(objc_arc)
66 #define VTK_OBJC_IS_MRR 0
67 #define VTK_OBJC_IS_ARC 1
68 #define VTK_OBJC_IS_GC 0
70 #define VTK_OBJC_IS_MRR 1
71 #define VTK_OBJC_IS_ARC 0
72 #define VTK_OBJC_IS_GC 0
75 #if __has_feature(objc_arc)
76 #error VTK does not yet support ARC memory management