Hey JGR! I have updated my Macbook to 10.15 Catalina, and now compiling does work, but the game no longer starts. Compiling gives a couple of warnings, and I was wondering if you would be willing to look at them for me. Of course this might very well be an OS related problem, but maybe you see something you might be able and willing to help with.
For anyone who is willing to test this on a Mojave machine (10.14), I've attached the zipped bundle to this post. Please let me know if it works for you, so I can rule out certain possibilities.
Code: Select all
[SRC] Compiling os/macosx/macos.mm
/Users/koevoets/downloads/openttd-patches/src/os/macosx/macos.mm:194:45: warning: 'NSStringPboardType' is deprecated: first deprecated in macOS 10.14 [-Wdeprecated-declarations]
NSArray *types = [ NSArray arrayWithObject:NSStringPboardType ];
^~~~~~~~~~~~~~~~~~
NSPasteboardTypeString
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:311:32: note:
'NSStringPboardType' has been explicitly marked deprecated here
APPKIT_EXTERN NSPasteboardType NSStringPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeString", macos(10.0,10.14));
^
/Users/koevoets/downloads/openttd-patches/src/os/macosx/macos.mm:200:40: warning: 'NSStringPboardType' is deprecated: first deprecated in macOS 10.14 [-Wdeprecated-declarations]
NSString *string = [ pb stringForType:NSStringPboardType ];
^~~~~~~~~~~~~~~~~~
NSPasteboardTypeString
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:311:32: note:
'NSStringPboardType' has been explicitly marked deprecated here
APPKIT_EXTERN NSPasteboardType NSStringPboardType API_DEPRECATED_WITH_REPLACEMENT("NSPasteboardTypeString", macos(10.0,10.14));
^
2 warnings generated.
[SRC] Compiling video/cocoa/cocoa_v.mm
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/cocoa_v.mm:79:48: warning: 'NSApplicationDefined' is deprecated: first deprecated in macOS 10.12
[-Wdeprecated-declarations]
NSEvent *event = [ NSEvent otherEventWithType:NSApplicationDefined location:NSMakePoint(0, 0) modifierFlags:0 timestamp:0.0 windowNumber:0 context:nil subtype:0 data...
^~~~~~~~~~~~~~~~~~~~
NSEventTypeApplicationDefined
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note:
'NSApplicationDefined' has been explicitly marked deprecated here
static const NSEventType NSApplicationDefined API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeApplicationDefined", macos(10.0,10.12)) = NSEventTypeApplicationDefined;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/cocoa_v.mm:147:43: warning: 'NSAlternateKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
[ menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask | NSCommandKeyMask) ];
^~~~~~~~~~~~~~~~~~
NSEventModifierFlagOption
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:179:35: note:
'NSAlternateKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSAlternateKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagOption", macos(10.0,10.12)) = NSEventModifierFlagOption;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/cocoa_v.mm:147:64: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
[ menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask | NSCommandKeyMask) ];
^~~~~~~~~~~~~~~~
NSEventModifierFlagCommand
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:180:35: note:
'NSCommandKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSCommandKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCommand", macos(10.0,10.12)) = NSEventModifierFlagCommand;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/cocoa_v.mm:663:26: warning: 'NSCriticalAlertStyle' is deprecated: first deprecated in macOS 10.12
[-Wdeprecated-declarations]
[ alert setAlertStyle: NSCriticalAlertStyle ];
^~~~~~~~~~~~~~~~~~~~
NSAlertStyleCritical
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:142:27: note:
'NSCriticalAlertStyle' has been explicitly marked deprecated here
static const NSAlertStyle NSCriticalAlertStyle API_DEPRECATED_WITH_REPLACEMENT("NSAlertStyleCritical", macos(10.3,10.12)) = NSAlertStyleCritical;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/cocoa_v.mm:773:9: warning: 'cacheImageInRect:' is deprecated: first deprecated in macOS 10.13 - This method shouldn’t be
used as it doesn’t work in all drawing situations; instead, a subview should be used that implements the desired drawing behavior [-Wdeprecated-declarations]
[ self cacheImageInRect:[ driver->cocoaview frame ] ];
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:796:1: note:
'cacheImageInRect:' has been explicitly marked deprecated here
- (void)cacheImageInRect:(NSRect)rect API_DEPRECATED("This method shouldn’t be used as it doesn’t work in all drawing situations; instead, a subview should be used that impl...
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/cocoa_v.mm:779:9: warning: 'restoreCachedImage' is deprecated: first deprecated in macOS 10.13 - This method shouldn’t be
used as it doesn’t work in all drawing situations; instead, a subview should be used that implements the desired drawing behavior [-Wdeprecated-declarations]
[ self restoreCachedImage ];
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:797:1: note:
'restoreCachedImage' has been explicitly marked deprecated here
- (void)restoreCachedImage API_DEPRECATED("This method shouldn’t be used as it doesn’t work in all drawing situations; instead, a subview should be used that implements the ...
^
6 warnings generated.
[SRC] Compiling video/cocoa/event.mm
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:268:22: warning: 'NSShiftKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (_current_mods & NSShiftKeyMask) key |= WKC_SHIFT;
^~~~~~~~~~~~~~
NSEventModifierFlagShift
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:177:35: note:
'NSShiftKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSShiftKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagShift", macos(10.0,10.12)) = NSEventModifierFlagShift;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:269:22: warning: 'NSControlKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (_current_mods & NSControlKeyMask) key |= (_settings_client.gui.right_mouse_btn_emulation != RMBE_CONTROL ? WKC_CTRL : WKC_META);
^~~~~~~~~~~~~~~~
NSEventModifierFlagControl
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:178:35: note:
'NSControlKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSControlKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagControl", macos(10.0,10.12)) = NSEventModifierFlagControl;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:270:22: warning: 'NSAlternateKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (_current_mods & NSAlternateKeyMask) key |= WKC_ALT;
^~~~~~~~~~~~~~~~~~
NSEventModifierFlagOption
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:179:35: note:
'NSAlternateKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSAlternateKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagOption", macos(10.0,10.12)) = NSEventModifierFlagOption;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:271:22: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (_current_mods & NSCommandKeyMask) key |= (_settings_client.gui.right_mouse_btn_emulation != RMBE_CONTROL ? WKC_META : WKC_CTRL);
^~~~~~~~~~~~~~~~
NSEventModifierFlagCommand
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:180:35: note:
'NSCommandKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSCommandKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCommand", macos(10.0,10.12)) = NSEventModifierFlagCommand;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:290:33: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (down && (_current_mods & NSCommandKeyMask)) {
^~~~~~~~~~~~~~~~
NSEventModifierFlagCommand
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:180:35: note:
'NSCommandKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSCommandKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCommand", macos(10.0,10.12)) = NSEventModifierFlagCommand;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:296:60: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (down && EditBoxInGlobalFocus() && (_current_mods & (NSCommandKeyMask | NSControlKeyMask))) {
^~~~~~~~~~~~~~~~
NSEventModifierFlagCommand
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:180:35: note:
'NSCommandKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSCommandKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCommand", macos(10.0,10.12)) = NSEventModifierFlagCommand;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:296:79: warning: 'NSControlKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (down && EditBoxInGlobalFocus() && (_current_mods & (NSCommandKeyMask | NSControlKeyMask))) {
^~~~~~~~~~~~~~~~
NSEventModifierFlagControl
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:178:35: note:
'NSControlKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSControlKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagControl", macos(10.0,10.12)) = NSEventModifierFlagControl;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:301:60: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (down && EditBoxInGlobalFocus() && (_current_mods & (NSCommandKeyMask | NSControlKeyMask))) {
^~~~~~~~~~~~~~~~
NSEventModifierFlagCommand
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:180:35: note:
'NSCommandKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSCommandKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCommand", macos(10.0,10.12)) = NSEventModifierFlagCommand;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:301:79: warning: 'NSControlKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (down && EditBoxInGlobalFocus() && (_current_mods & (NSCommandKeyMask | NSControlKeyMask))) {
^~~~~~~~~~~~~~~~
NSEventModifierFlagControl
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:178:35: note:
'NSControlKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSControlKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagControl", macos(10.0,10.12)) = NSEventModifierFlagControl;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:344:33: warning: 'NSAlphaShiftKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
for (unsigned int i = 0, bit = NSAlphaShiftKeyMask; bit <= NSCommandKeyMask; bit <<= 1, ++i) {
^~~~~~~~~~~~~~~~~~~
NSEventModifierFlagCapsLock
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:176:35: note:
'NSAlphaShiftKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSAlphaShiftKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCapsLock", macos(10.0,10.12)) = NSEventModifierFlagCapsLock;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:344:61: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
for (unsigned int i = 0, bit = NSAlphaShiftKeyMask; bit <= NSCommandKeyMask; bit <<= 1, ++i) {
^~~~~~~~~~~~~~~~
NSEventModifierFlagCommand
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:180:35: note:
'NSCommandKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSCommandKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCommand", macos(10.0,10.12)) = NSEventModifierFlagCommand;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:352:15: warning: 'NSAlphaShiftKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (bit == NSAlphaShiftKeyMask) QZ_KeyEvent(mapping[i], 0, YES);
^~~~~~~~~~~~~~~~~~~
NSEventModifierFlagCapsLock
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:176:35: note:
'NSAlphaShiftKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSAlphaShiftKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCapsLock", macos(10.0,10.12)) = NSEventModifierFlagCapsLock;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:357:15: warning: 'NSAlphaShiftKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (bit == NSAlphaShiftKeyMask) QZ_KeyEvent(mapping[i], 0, NO);
^~~~~~~~~~~~~~~~~~~
NSEventModifierFlagCapsLock
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:176:35: note:
'NSAlphaShiftKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSAlphaShiftKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCapsLock", macos(10.0,10.12)) = NSEventModifierFlagCapsLock;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:408:49: warning: 'NSAnyEventMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
NSEvent *event = [ NSApp nextEventMatchingMask:NSAnyEventMask
^~~~~~~~~~~~~~
NSEventMaskAny
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:157:26: note:
'NSAnyEventMask' has been explicitly marked deprecated here
static const NSEventMask NSAnyEventMask API_DEPRECATED_WITH_REPLACEMENT("NSEventMaskAny", macos(10.0,10.12)) = NSUIntegerMax;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:426:8: warning: 'NSMouseMoved' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSMouseMoved:
^~~~~~~~~~~~
NSEventTypeMouseMoved
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:68:26: note:
'NSMouseMoved' has been explicitly marked deprecated here
static const NSEventType NSMouseMoved API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeMouseMoved", macos(10.0,10.12)) = NSEventTypeMouseMoved;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:427:8: warning: 'NSOtherMouseDragged' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSOtherMouseDragged:
^~~~~~~~~~~~~~~~~~~
NSEventTypeOtherMouseDragged
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:86:26: note:
'NSOtherMouseDragged' has been explicitly marked deprecated here
static const NSEventType NSOtherMouseDragged API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeOtherMouseDragged", macos(10.0,10.12)) = NSEventTypeOtherMouseDragged;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:428:8: warning: 'NSLeftMouseDragged' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSLeftMouseDragged:
^~~~~~~~~~~~~~~~~~
NSEventTypeLeftMouseDragged
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:69:26: note:
'NSLeftMouseDragged' has been explicitly marked deprecated here
static const NSEventType NSLeftMouseDragged API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeLeftMouseDragged", macos(10.0,10.12)) = NSEventTypeLeftMouseDragged;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:438:8: warning: 'NSRightMouseDragged' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSRightMouseDragged:
^~~~~~~~~~~~~~~~~~~
NSEventTypeRightMouseDragged
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:70:26: note:
'NSRightMouseDragged' has been explicitly marked deprecated here
static const NSEventType NSRightMouseDragged API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeRightMouseDragged", macos(10.0,10.12)) = NSEventTypeRightMouseDragged;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:443:8: warning: 'NSLeftMouseDown' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSLeftMouseDown:
^~~~~~~~~~~~~~~
NSEventTypeLeftMouseDown
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:64:26: note:
'NSLeftMouseDown' has been explicitly marked deprecated here
static const NSEventType NSLeftMouseDown API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeLeftMouseDown", macos(10.0,10.12)) = NSEventTypeLeftMouseDown;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:446:83: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (_settings_client.gui.right_mouse_btn_emulation == RMBE_COMMAND) keymask |= NSCommandKeyMask;
^~~~~~~~~~~~~~~~
NSEventModifierFlagCommand
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:180:35: note:
'NSCommandKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSCommandKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCommand", macos(10.0,10.12)) = NSEventModifierFlagCommand;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:447:83: warning: 'NSControlKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if (_settings_client.gui.right_mouse_btn_emulation == RMBE_CONTROL) keymask |= NSControlKeyMask;
^~~~~~~~~~~~~~~~
NSEventModifierFlagControl
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:178:35: note:
'NSControlKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSControlKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagControl", macos(10.0,10.12)) = NSEventModifierFlagControl;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:466:8: warning: 'NSLeftMouseUp' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSLeftMouseUp:
^~~~~~~~~~~~~
NSEventTypeLeftMouseUp
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:65:26: note:
'NSLeftMouseUp' has been explicitly marked deprecated here
static const NSEventType NSLeftMouseUp API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeLeftMouseUp", macos(10.0,10.12)) = NSEventTypeLeftMouseUp;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:482:8: warning: 'NSRightMouseDown' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSRightMouseDown:
^~~~~~~~~~~~~~~~
NSEventTypeRightMouseDown
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:66:26: note:
'NSRightMouseDown' has been explicitly marked deprecated here
static const NSEventType NSRightMouseDown API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeRightMouseDown", macos(10.0,10.12)) = NSEventTypeRightMouseDown;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:493:8: warning: 'NSRightMouseUp' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSRightMouseUp:
^~~~~~~~~~~~~~
NSEventTypeRightMouseUp
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:67:26: note:
'NSRightMouseUp' has been explicitly marked deprecated here
static const NSEventType NSRightMouseUp API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeRightMouseUp", macos(10.0,10.12)) = NSEventTypeRightMouseUp;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:529:8: warning: 'NSKeyDown' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSKeyDown: {
^~~~~~~~~
NSEventTypeKeyDown
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:73:26: note: 'NSKeyDown'
has been explicitly marked deprecated here
static const NSEventType NSKeyDown API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeKeyDown", macos(10.0,10.12)) = NSEventTypeKeyDown;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:535:36: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if ([ event modifierFlags ] & NSCommandKeyMask) {
^~~~~~~~~~~~~~~~
NSEventModifierFlagCommand
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:180:35: note:
'NSCommandKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSCommandKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCommand", macos(10.0,10.12)) = NSEventModifierFlagCommand;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:556:8: warning: 'NSKeyUp' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSKeyUp:
^~~~~~~
NSEventTypeKeyUp
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:74:26: note: 'NSKeyUp'
has been explicitly marked deprecated here
static const NSEventType NSKeyUp API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeKeyUp", macos(10.0,10.12)) = NSEventTypeKeyUp;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:562:36: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
if ([ event modifierFlags ] & NSCommandKeyMask) {
^~~~~~~~~~~~~~~~
NSEventModifierFlagCommand
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:180:35: note:
'NSCommandKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSCommandKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCommand", macos(10.0,10.12)) = NSEventModifierFlagCommand;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:572:8: warning: 'NSScrollWheel' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSScrollWheel:
^~~~~~~~~~~~~
NSEventTypeScrollWheel
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:81:26: note:
'NSScrollWheel' has been explicitly marked deprecated here
static const NSEventType NSScrollWheel API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeScrollWheel", macos(10.0,10.12)) = NSEventTypeScrollWheel;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:626:8: warning: 'NSCursorUpdate' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSCursorUpdate:
^~~~~~~~~~~~~~
NSEventTypeCursorUpdate
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:80:26: note:
'NSCursorUpdate' has been explicitly marked deprecated here
static const NSEventType NSCursorUpdate API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeCursorUpdate", macos(10.0,10.12)) = NSEventTypeCursorUpdate;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:627:8: warning: 'NSMouseEntered' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSMouseEntered:
^~~~~~~~~~~~~~
NSEventTypeMouseEntered
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:71:26: note:
'NSMouseEntered' has been explicitly marked deprecated here
static const NSEventType NSMouseEntered API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeMouseEntered", macos(10.0,10.12)) = NSEventTypeMouseEntered;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:628:8: warning: 'NSMouseExited' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
case NSMouseExited:
^~~~~~~~~~~~~
NSEventTypeMouseExited
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:72:26: note:
'NSMouseExited' has been explicitly marked deprecated here
static const NSEventType NSMouseExited API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeMouseExited", macos(10.0,10.12)) = NSEventTypeMouseExited;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:700:106: warning: 'NSControlKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
_ctrl_pressed = !!(_current_mods & ( _settings_client.gui.right_mouse_btn_emulation != RMBE_CONTROL ? NSControlKeyMask : NSCommandKeyMask)) != _invert_ctrl;
^~~~~~~~~~~~~~~~
NSEventModifierFlagControl
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:178:35: note:
'NSControlKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSControlKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagControl", macos(10.0,10.12)) = NSEventModifierFlagControl;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:700:125: warning: 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
_ctrl_pressed = !!(_current_mods & ( _settings_client.gui.right_mouse_btn_emulation != RMBE_CONTROL ? NSControlKeyMask : NSCommandKeyMask)) != _invert_ctrl;
^~~~~~~~~~~~~~~~
NSEventModifierFlagCommand
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:180:35: note:
'NSCommandKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSCommandKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagCommand", macos(10.0,10.12)) = NSEventModifierFlagCommand;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/event.mm:701:40: warning: 'NSShiftKeyMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
_shift_pressed = !!(_current_mods & NSShiftKeyMask) != _invert_shift;
^~~~~~~~~~~~~~
NSEventModifierFlagShift
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:177:35: note:
'NSShiftKeyMask' has been explicitly marked deprecated here
static const NSEventModifierFlags NSShiftKeyMask API_DEPRECATED_WITH_REPLACEMENT("NSEventModifierFlagShift", macos(10.0,10.12)) = NSEventModifierFlagShift;
^
35 warnings generated.
[SRC] Compiling video/cocoa/fullscreen.mm
[SRC] Compiling video/cocoa/wnd_quartz.mm
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/wnd_quartz.mm:119:82: warning: 'graphicsPort' is deprecated: first deprecated in macOS 10.14 [-Wdeprecated-declarations]
CGContextRef viewContext = (CGContextRef)[ [ NSGraphicsContext currentContext ] graphicsPort ];
^~~~~~~~~~~~
CGContext
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphicsContext.h:111:28: note:
property 'graphicsPort' is declared deprecated here
@property (readonly) void *graphicsPort NS_RETURNS_INNER_POINTER API_DEPRECATED_WITH_REPLACEMENT("CGContext", macos(10.0,10.14));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphicsContext.h:111:28: note:
'graphicsPort' has been explicitly marked deprecated here
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/wnd_quartz.mm:253:24: warning: 'NSTitledWindowMask' is deprecated: first deprecated in macOS 10.12
[-Wdeprecated-declarations]
unsigned int style = NSTitledWindowMask;
^~~~~~~~~~~~~~~~~~
NSWindowStyleMaskTitled
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:850:32: note:
'NSTitledWindowMask' has been explicitly marked deprecated here
static const NSWindowStyleMask NSTitledWindowMask API_DEPRECATED_WITH_REPLACEMENT("NSWindowStyleMaskTitled", macos(10.0,10.12)) = NSWindowStyleMaskTitled;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/wnd_quartz.mm:254:13: warning: 'NSMiniaturizableWindowMask' is deprecated: first deprecated in macOS 10.12
[-Wdeprecated-declarations]
style |= (NSMiniaturizableWindowMask | NSClosableWindowMask);
^~~~~~~~~~~~~~~~~~~~~~~~~~
NSWindowStyleMaskMiniaturizable
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:852:32: note:
'NSMiniaturizableWindowMask' has been explicitly marked deprecated here
static const NSWindowStyleMask NSMiniaturizableWindowMask API_DEPRECATED_WITH_REPLACEMENT("NSWindowStyleMaskMiniaturizable", macos(10.0,10.12)) = NSWindowStyleMaskMiniaturizable;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/wnd_quartz.mm:254:42: warning: 'NSClosableWindowMask' is deprecated: first deprecated in macOS 10.12
[-Wdeprecated-declarations]
style |= (NSMiniaturizableWindowMask | NSClosableWindowMask);
^~~~~~~~~~~~~~~~~~~~
NSWindowStyleMaskClosable
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:851:32: note:
'NSClosableWindowMask' has been explicitly marked deprecated here
static const NSWindowStyleMask NSClosableWindowMask API_DEPRECATED_WITH_REPLACEMENT("NSWindowStyleMaskClosable", macos(10.0,10.12)) = NSWindowStyleMaskClosable;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/wnd_quartz.mm:255:12: warning: 'NSResizableWindowMask' is deprecated: first deprecated in macOS 10.12
[-Wdeprecated-declarations]
style |= NSResizableWindowMask;
^~~~~~~~~~~~~~~~~~~~~
NSWindowStyleMaskResizable
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:853:32: note:
'NSResizableWindowMask' has been explicitly marked deprecated here
static const NSWindowStyleMask NSResizableWindowMask API_DEPRECATED_WITH_REPLACEMENT("NSWindowStyleMaskResizable", macos(10.0,10.12)) = NSWindowStyleMaskResizable;
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/wnd_quartz.mm:286:69: warning: 'NSWindowFullScreenButton' is deprecated: first deprecated in macOS 10.12 - The standard
window button for NSWindowFullScreenButton is always nil; use NSWindowZoomButton instead [-Wdeprecated-declarations]
NSButton* fullscreenButton = [ this->window standardWindowButton:NSWindowFullScreenButton ];
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:866:29: note:
'NSWindowFullScreenButton' has been explicitly marked deprecated here
static const NSWindowButton NSWindowFullScreenButton API_DEPRECATED("The standard window button for NSWindowFullScreenButton is always nil; use NSWindowZoomButton instead", ...
^
/Users/koevoets/downloads/openttd-patches/src/video/cocoa/wnd_quartz.mm:332:2: warning: multiple methods named 'center' found [-Wobjc-multiple-method-names]
[ this->window center ];
^~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:601:19: note:
using
@property NSPoint center;
^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:312:1: note: also found
- (void)center;
^~~~~~~~~~~~~~~
7 warnings generated.
[SRC] Compiling video/cocoa/wnd_quickdraw.mm
[SRC] Linking openttd