Re: FSFileManager strange behaviour on OS X

2015-07-31 Thread Tim Fletcher
Hi Jens, Problem solved. > > Is your application sandboxed? > But even so, I thought that NSOpen/SavePanel granted a sandboxed app > permission to access the directory or file chosen by the user. (I’ve never > actually used that functionality in a sandboxed app, though.) > No, the app isn’t

Re: FSFileManager strange behaviour on OS X

2015-07-31 Thread Jens Alfke
> On Jul 31, 2015, at 11:46 AM, Tim Fletcher > wrote: > > I have a Chose File dialog for the user to select a file (directory in this > case). I retrieve the absolute path of the chosen directory. > However, am not able to list the contents of the directory. Is your application sandboxed? Bu

FSFileManager strange behaviour on OS X

2015-07-31 Thread Tim Fletcher
Hi All, I have a Chose File dialog for the user to select a file (directory in this case). I retrieve the absolute path of the chosen directory. However, am not able to list the contents of the directory. In a Swift playground this is a little demo I made let fs = NSFileManager.defaultManager(