3 summary:: Shows various system dialogs
4 categories:: GUI>Accessories
7 This class allows to show various system dialogs. link::#*openPanel:: will show a dialog for selecting a file to open, and link::#*savePanel:: will show a dialog for selecting or creating a file to save to.
14 Shows a dialog for selection of an existing file (or multiple files) to open. It does not do anything with the file, instead it just passes the chosen filenames to the given result handler.
17 An object to be evaluated when OK is pressed. As argument, either a single filename is passed as a String, or an Array of Strings for multiple selected items is passed, depending on the strong::multipleSelection:: argument.
19 An object to be evaluated when Cancel is pressed.
20 ARGUMENT:: multipleSelection
21 A Boolean indicating whether multiple files can be selected.
26 Dialog.openPanel({ arg path;
35 Shows a dialog for selecting or creating a file to save to. It does not do anything with the selected file, and does not create any file; instead it just passes the chosen filename to the given result handler.
38 An object to be evaluated when OK is pressed. The chosen filename is passed as a String as argument.
40 An object to be evaluated when Cancel is pressed.
45 Dialog.savePanel({ arg path;
54 note::Deprecated. Use link::#*openPanel:: instead. ::
56 Implements the same functionality as *openPanel, only the last argument is named differently and defaults to true.