mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-19 01:04:20 +00:00
Workaround for long filenames in Process::openDocument on OSX
This commit is contained in:
parent
82350ba247
commit
48b35c447a
1 changed files with 4 additions and 2 deletions
|
|
@ -414,8 +414,10 @@ bool JUCE_CALLTYPE Process::openDocument (const String& fileName, const String&
|
|||
NSWorkspace* workspace = [NSWorkspace sharedWorkspace];
|
||||
|
||||
if (parameters.isEmpty())
|
||||
return [workspace openFile: juceStringToNS (fileName)]
|
||||
|| [workspace openURL: filenameAsURL];
|
||||
// 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];
|
||||
|
||||
const File file (fileName);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue