From 9c6ce98a546e62c747e5703e3a7458d4ed3ea302 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Tue, 26 Apr 2022 16:32:15 +0100 Subject: [PATCH] macOS: Fix an unguarded availability warning --- modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm | 2 +- 1 file changed, 1 insertion(+), 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 f19686b810..17361fc7e2 100644 --- a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm +++ b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm @@ -1877,7 +1877,7 @@ private: void updateCVDisplayLinkScreen() { - auto viewDisplayID = (CGDirectDisplayID) [window.screen.deviceDescription[@"NSScreenNumber"] unsignedIntegerValue]; + auto viewDisplayID = (CGDirectDisplayID) [[window.screen.deviceDescription objectForKey: @"NSScreenNumber"] unsignedIntegerValue]; auto result = CVDisplayLinkSetCurrentCGDisplay (displayLink, viewDisplayID); jassertquiet (result == kCVReturnSuccess); }