From 6ff5af9c43e7d9b5530e4c82443aa28053ac3615 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 16 Jan 2019 17:35:48 +0000 Subject: [PATCH] macOS: Fixed a crash on versions before 10.9 --- .../juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm index a6de7b0165..19fe25577b 100644 --- a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm +++ b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm @@ -123,7 +123,9 @@ public: if (! [window isOpaque]) [window setBackgroundColor: [NSColor clearColor]]; - [view setAppearance: [NSAppearance appearanceNamed: NSAppearanceNameAqua]]; + #if defined (MAC_OS_X_VERSION_10_9) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9) + [view setAppearance: [NSAppearance appearanceNamed: NSAppearanceNameAqua]]; + #endif #endif [window setHasShadow: ((windowStyleFlags & windowHasDropShadow) != 0)];