NSURL
Undocumented
-
Open the panel to select input file
Declaration
Swift
public class func openPanel(title : String, fileTypes types: Array<String>?, openFileCallback: (result: Array<NSURL>) -> Void)
Parameters
title
Title of the open panel
fileTypes
Target file types to open
openFileCallback
Callback function to be called when the file is seleted
-
Open the panel to select the file to save the current context
Declaration
Swift
public class func savePanel(title : String, outputDirectory outdir: NSURL?, saveFileCallback: (result: NSURL) -> Bool)
Parameters
title
Title of the save panel
outputDirectory
Default parent directory to save the file
saveFileCallback
Callback function to be called when the file is selected
Return Value
Yes when the file is seleted to save
-
Undocumented
-
Undocumented