Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSSavePanelMBS.accessoryView as NSViewMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: The custom accessory view for the current application.
Notes:
You can place any Cocoa control on that panel.
(Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.allowsOtherFileTypes as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the receiver allows the user to save files with an extension that's not in the list of allowed types.
Notes:
If the user tries to save a filename with a recognized extension that's not in the list of allowed types they are presented with a dialog. If this property is true, then the dialog presents the option of using the extension the user specified.

The default setting is false.
(Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.canCreateDirectories as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: Whether the receiver allows the user to create directories.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.canSelectHiddenExtension as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the receiver allows the user to hide or show extensions.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.Directory as folderitem
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: The path of the directory currently shown in the panel.
Notes:
May be nil on any error.
(Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.directoryURL as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: The directory shown in the panel as a URL.
Notes:
Available in Mac OS X v10.6 and later.
(Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.isExpanded as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: Whether the panel is expanded.
Notes: (Read only property)

Feedback, Comments & Corrections

NSSavePanelMBS.isExtensionHidden as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: Whether the extension-hiding checkbox is visible and checked.
Notes:
True to show the checkbox and false to hide.
(Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.Message as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: The message displayed in the panel.
Notes:
The default message text is an empty string.
(Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.NameFieldLabel as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: The string displayed in front of the filename text field.
Notes:
By default the label is "Save As:".
(Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.nameFieldStringValue as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: The user-editable filename currently shown in the name field.
Notes:
Available in Mac OS X v10.6 and later.
(Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.Prompt as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: The prompt of the default button.
Notes:
This prompt appears on all SavePanel objects (or all OpenPanel objects if the panel of this message is an NSOpenPanel instance) in your application. By default the text in the default button is "Open" for an Open panel and "Save" for a Save panel.

It is intended that short words or phrases, such as "Open", "Save", "Set", or "Choose", be used on the button. The button is not resized to accommodate long prompts.

Since this method previously affected a title field, any colon at the end of prompt is removed.
(Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.requiredFileType as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: The required file type (if any).
Notes:
A file specified in the Save panel is saved with the designated filename and this file type as an extension. Examples of common file types are "rtf", "tiff", and "ps". File type strings encoding HFS file types are not valid values for this attribute. An "" return value indicates that the user can save to any ASCII file.

This method is equivalent to calling allowedFileTypes and returning the first element of the list of allowed types, or "" if there are none.
(Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.showsHiddenFiles as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 8.2 Yes No No Yes, macOS only No
Function: Whether to show or hide the invisible files.
Notes:
This is a function using undocumented features from the Apple NSSavePanel class, so there is not guarantee that it will work in future versions.
(Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.Title as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: The title of the panel.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSSavePanelMBS.treatsFilePackagesAsDirectories as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Navigation MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the panel displays file packages to the user as directories.
Notes: (Read and Write property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacCocoa Plugin.




Links
MBS Xojo blog