Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSOpenPanelMBS class.

NSOpenPanelMBS.AccessoryViewDisclosed as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Navigation MBS MacCocoa Plugin 23.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the panel's accessory view is visible.

The value of this property is true when the accessory view is visible, and false when it isn't. Setting the value of this property programmatically changes the visibility of the accessory panel. If no accessory panel is present, setting this property does nothing.
(Read and Write property)

NSOpenPanelMBS.allowsMultipleSelection as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Navigation MBS MacCocoa Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the panel's browser allows the user to open multiple files (and directories) at a time.

(Read and Write property)

NSOpenPanelMBS.canChooseDirectories as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Navigation MBS MacCocoa Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the user can select directories in the pane's browser.

When a directory is selected, the OK button is enabled only if flag is true.
(Read and Write property)

Some examples using this property:

NSOpenPanelMBS.canChooseFiles as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Navigation MBS MacCocoa Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the panel allows the user to choose files to open.

(Read and Write property)

Some examples using this property:

NSOpenPanelMBS.canDownloadUbiquitousContents as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Navigation MBS MacCocoa Plugin 14.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Controls how the receiver responds to ubiquitous documents that aren't yet fully downloaded locally.

If true, then the receiver will disallow opening non-local ubiquitous files. Also, if the user attempts to select a non-local file, the receiver will trigger or reprioritize downloading for that file so that it can be opened as soon as possible. If false, then the receiver will allow the user to select and open non-local files, giving your application responsibility for downloading and reporting progress. The default value is true, except for applications linked against the 10.9 SDK or earlier that have adopted iCloud by specifying a ubiquitous container identifier entitlement.

To provide the ideal user experience, you should set this property to NO and download the file's contents (with NSFileCoordinator) and show downloading progress (with NSProgress or NSMetadataQuery) in the context of your application, instead of relying on the open panel to do it.

Available in Mac OS X 10.10 and newer.
(Read and Write property)

NSOpenPanelMBS.canResolveUbiquitousConflicts as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Navigation MBS MacCocoa Plugin 14.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Controls how the receiver responds to ubiquitous documents with conflicting versions.

If true, then when the user attempts to open one or more documents with conflicts, the receiver will first display conflict resolution UI, requiring the user to resolve those conflicts before the documents can be opened. If false, then the receiver does nothing in response to conflicts, allowing your application to handle them. The default value is true, except for applications linked against the 10.9 SDK or earlier that have adopted iCloud by specifying a ubiquitous container identifier entitlement.

To provide the ideal user experience, you should set this property to NO and do conflict detection and resolution (using NSURLUbiquitousItemHasUnresolvedConflictsKey and NSFileVersion) in the context of your application, instead of relying on the open panel to do it.

Available in Mac OS X 10.10 and newer.
(Read and Write property)

NSOpenPanelMBS.FilesCount as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Navigation MBS MacCocoa Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The number of selected files.

(Read only property)

NSOpenPanelMBS.resolvesAliases as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Navigation MBS MacCocoa Plugin 7.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver resolves aliases.

If true, the effect is that dropping an alias on the panel or asking for filenames returns the resolved aliases. The default is true.
(Read and Write property)

Some examples using this property:

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


The biggest plugin in space...