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

iOS URL opening fix.

This commit is contained in:
jules 2012-01-24 16:32:13 +00:00
parent 529fbfbcc3
commit 824f1b8484

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