From 1b001e7a7610ab3ffce3757505fa5f73c3f53ceb Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 23 Oct 2019 10:10:27 +0100 Subject: [PATCH] macOS: Removed call to deprecated NSWorkspace openFile method --- modules/juce_core/native/juce_mac_Files.mm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/juce_core/native/juce_mac_Files.mm b/modules/juce_core/native/juce_mac_Files.mm index 1446ca1f82..5303121112 100644 --- a/modules/juce_core/native/juce_mac_Files.mm +++ b/modules/juce_core/native/juce_mac_Files.mm @@ -415,10 +415,7 @@ bool JUCE_CALLTYPE Process::openDocument (const String& fileName, const String& NSWorkspace* workspace = [NSWorkspace sharedWorkspace]; if (parameters.isEmpty()) - // NB: the length check here is because of strange failures involving long filenames, - // probably due to filesystem name length limitations.. - return (fileName.length() < 1024 && [workspace openFile: juceStringToNS (fileName)]) - || [workspace openURL: filenameAsURL]; + return [workspace openURL: filenameAsURL]; const File file (fileName);