7 Replies
      Latest reply on Feb 11, 2019 11:33 AM by Pendragon
      Pendragon Level 1 Level 1 (0 points)

        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?