1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

macOS: Removed call to deprecated NSWorkspace openFile method

This commit is contained in:
ed 2019-10-23 10:10:27 +01:00
parent 671196f13a
commit 1b001e7a76

View file

@ -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);