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 =

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

WKWebView Allow file selection button to select directories

2015-07-30 Thread Tim Fletcher
Hi All, In a WKWebView I am rendering the following button input type=file webkitdirectory directory multiple However this is not working. I have downloaded the latest version of Webkit. Could someone point me to a documentation page explaining how I might go about this? Thanks for your

Re: WKWebView Allow file selection button to select directories

2015-07-30 Thread Tim Fletcher
, the idea of just dropping the folder on a button, or drop zone of some sort is indeed a good workaround. Cheers, Tim On 30 Jul 2015, at 15:01, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 30 Jul 2015, at 15:27, Tim Fletcher timothy.m.fletc...@gmail.com wrote: In a WKWebView I am

Re: CGFloat and literal floats in Swift

2015-07-27 Thread Tim Fletcher
Slightly off topic; I would love to see some form of what Scala calls implicits in swift. For exactly this reason. On Mon, 27 Jul 2015 05:10 Rick Mann rm...@latencyzero.com wrote: On Jul 26, 2015, at 20:57 , Jens Alfke j...@mooseyard.com wrote: On Jul 26, 2015, at 4:50 PM, Quincey

Re: WKWebView loading local files (and relative paths)

2015-07-26 Thread Tim Fletcher
Sorry, massive omission on my part. I'm building a desktop OS X 10.10.4 application. Using the latest Xcode On Sunday, July 26, 2015, Jens Alfke j...@mooseyard.com wrote: The path in your example (starting with /Users) isn't valid for iOS. What path are you really using? Are you sure that it's

Re: WKWebView loading local files (and relative paths)

2015-07-26 Thread Tim Fletcher
Solved Sorry for the noise List. It was user error. I wasn’t using the WebView correctly. Tim On 26 Jul 2015, at 07:30, Tim Fletcher timothy.m.fletc...@gmail.com wrote: Sorry, massive omission on my part. I'm building a desktop OS X 10.10.4 application. Using the latest Xcode On Sunday

WKWebView loading local files (and relative paths)

2015-07-25 Thread Tim Fletcher
Hi All I would like to have my application build mostly around WKWebView, with computationally hard bits (lots of CoreAudio) done in c (well, mix of Swift, C and ObjC) However, I am not able to load files from the local file system let url : NSURL = NSURL(fileURLWithPath: