Browse Source

iOS URL opening fix.

tags/2021-05-28
jules 13 years ago
parent
commit
824f1b8484
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/native/juce_mac_Files.mm

+ 1
- 1
modules/juce_core/native/juce_mac_Files.mm View File

@@ -388,7 +388,7 @@ bool DirectoryIterator::NativeIterator::next (String& filenameFound,
bool Process::openDocument (const String& fileName, const String& parameters)
{
#if JUCE_IOS
return [[UIApplication sharedApplication] openURL: [NSURL fileURLWithPath: juceStringToNS (fileName)]];
return [[UIApplication sharedApplication] openURL: [NSURL URLWithString: juceStringToNS (fileName)]];
#else
JUCE_AUTORELEASEPOOL


Loading…
Cancel
Save