# iOS FileChooser issues

**URL:** <https://forum.juce.com/t/ios-filechooser-issues/6209>\
**Category:** MacOSX and iOS\
**Created:** [January 16, 2011, 5:26pm UTC](https://forum.juce.com/t/ios-filechooser-issues/6209 "2011-01-16T17:26:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [January 16, 2011, 5:26pm UTC](https://forum.juce.com/t/ios-filechooser-issues/6209/1 "2011-01-16T17:26:43Z")

</div>

Hi Jules,

If I try using the FileChooser class on iOS, things seem pretty broken when trying right now with the iOS simulator (3.2 iPad, fwiw…).

1. Firstly, for file save behaviour, I had to add defined(JUCE\_MAC) to the following line in juce\_amalgamated.cpp (around line 264025 in my copy…) … otherwise, the code crashes:

2. File save: the dialog presented seems to show everything! IMO what it really should show (unless told otherwise!) is the Documents folder and contents as the “virtual root”, and not allow the user to browse out above and beyond this folder (i.e. preserve the sandbox, Apple would no doubt reject an app showing the current behaviour…)

3. File open: doesn’t actually cause anything to display for some reason - haven’t drilled down specifically as to why yet! 🙂

Any thoughts?!

Best wishes,

Pete

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 16, 2011, 5:55pm UTC](https://forum.juce.com/t/ios-filechooser-issues/6209/2 "2011-01-16T17:55:28Z")

</div>

The file browser certainly wasn’t designed with the ipad in mind! Is there any kind of native browser in iOS4? Pretty sure there was no such thing in the old iphone SDKs, and I don’t think I’ve ever seen an app that has any kind of “open file” dialog, so I didn’t really worry about providing one…

BTW my code doesn’t match what you’re quoting there, so I’ve probably already fixed that bug - best to check the latest version before reporting stuff.

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [January 16, 2011, 6:16pm UTC](https://forum.juce.com/t/ios-filechooser-issues/6209/3 "2011-01-16T18:16:09Z")

</div>

Hi Jules!

Sorry I wasn’t more specific - I of course meant to say the non-native FileChooser … 🙂

Sure, there isn’t a native variant, but hopefully we can get the “generic” Juce FileChooser working OK. 🙂

Best wishes,

Pete

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [January 17, 2011, 10:44pm UTC](https://forum.juce.com/t/ios-filechooser-issues/6209/4 "2011-01-17T22:44:36Z")

</div>

> [@](#):
>
> File open: doesn’t actually cause anything to display for some reason - haven’t drilled down specifically as to why yet!

My bad - gonzo coding mistake on my part. 🙂

Just to note that the file open dialog shows similar file path problems as noted already for file save…!

Best wishes,

Pete
