1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-31 03:00:05 +00:00

iOS: add an option to Projucer to allow a user to access application documents in a native file chooser.

This commit is contained in:
Lukasz Kozakiewicz 2017-12-20 23:38:41 +01:00
parent f4cc815f3d
commit 3a3d889fd2

View file

@ -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);