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:
parent
671196f13a
commit
1b001e7a76
1 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue