From 824f1b8484f94a8e1ef53593ca3bda90fa6b68fc Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 24 Jan 2012 16:32:13 +0000 Subject: [PATCH] iOS URL opening fix. --- modules/juce_core/native/juce_mac_Files.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/native/juce_mac_Files.mm b/modules/juce_core/native/juce_mac_Files.mm index 43ad27fd41..901d3dd353 100644 --- a/modules/juce_core/native/juce_mac_Files.mm +++ b/modules/juce_core/native/juce_mac_Files.mm @@ -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