Add compilation guards for macOS 10.14 to avoid warnings
NSColor.linkColor is not available since macOS 10.10 as it is stated in the Appkit documentation but since 10.14 - see http://codeworkshop.net/objc-diff/sdkdiffs/macos/10.14/AppKit.html
This commit is contained in:
@@ -163,8 +163,8 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
|
|||||||
sysColor = [NSColor windowBackgroundColor];
|
sysColor = [NSColor windowBackgroundColor];
|
||||||
break;
|
break;
|
||||||
case wxSYS_COLOUR_HOTLIGHT:
|
case wxSYS_COLOUR_HOTLIGHT:
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14
|
||||||
if ( WX_IS_MACOS_AVAILABLE(10, 10) )
|
if ( WX_IS_MACOS_AVAILABLE(10, 14) )
|
||||||
{
|
{
|
||||||
sysColor = [NSColor linkColor];
|
sysColor = [NSColor linkColor];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user