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
titleTitle of the open panel
fileTypesTarget file types to open
openFileCallbackCallback 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
titleTitle of the save panel
outputDirectoryDefault parent directory to save the file
saveFileCallbackCallback function to be called when the file is selected
Return Value
Yes when the file is seleted to save
-
Undocumented
-
Undocumented
View on GitHub
NSURL Extension Reference