From 3a3d889fd2e30cf2cad71702c014b9dc0b82f8b0 Mon Sep 17 00:00:00 2001 From: Lukasz Kozakiewicz Date: Wed, 20 Dec 2017 23:38:41 +0100 Subject: [PATCH] iOS: add an option to Projucer to allow a user to access application documents in a native file chooser. --- .../Source/ProjectSaving/jucer_ProjectExport_Xcode.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h index 70b5119df5..1fa0c8f170 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h @@ -223,6 +223,9 @@ public: props.add (new BooleanPropertyComponent (getSetting ("UIFileSharingEnabled"), "File Sharing Enabled", "Enabled"), "Enable this to expose your app's files to iTunes."); + props.add (new BooleanPropertyComponent (getSetting ("UISupportsDocumentBrowser"), "Support Document Browser", "Enabled"), + "Enable this to allow the user to access your app documents from a native file chooser."); + props.add (new BooleanPropertyComponent (getSetting ("UIStatusBarHidden"), "Status Bar Hidden", "Enabled"), "Enable this to disable the status bar in your app."); @@ -1312,6 +1315,9 @@ public: if (owner.settings ["UIFileSharingEnabled"] && type != AudioUnitv3PlugIn) addPlistDictionaryKeyBool (dict, "UIFileSharingEnabled", true); + if (owner.settings ["UISupportsDocumentBrowser"]) + addPlistDictionaryKeyBool (dict, "UISupportsDocumentBrowser", true); + if (owner.settings ["UIStatusBarHidden"] && type != AudioUnitv3PlugIn) addPlistDictionaryKeyBool (dict, "UIStatusBarHidden", true);