I'm sure I'm not too far off what I want but doing this the openPanel never fires. Looked with Google but can't find an example of what I'm trying to achieve ?
Using ...
let local_path = {
let return_path = self.openDir()!.path
if return_path == "" {
print("Return URL nil")
} else {
print("Return URL: \(return_path)")
}
}
openDir is NSOpenPanel which returns URL?