Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSPathControlMBS class.

NSPathControlMBS.backgroundColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The background color.

By default, the background is set to a light blue color for NSPathStyleStandard and nil for the other styles. You can use NSColorMBS.clearColor to make the background transparent.
Available in Mac OS X v10.5 and later.
(Read and Write property)

NSPathControlMBS.clickedPathComponentCell as NSPathComponentCellMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns component cell that was clicked.

The value returned is generally valid only when the action or double action is being sent.
Note: In Mac OS X 10.5 and earlier the returned value was nil if no cell had been clicked. In Mac OS X 10.6, the folder of the cell that the user selected is returned instead.
(Read only property)

NSPathControlMBS.clickedPathItem as NSPathControlItemMBS   New in 24.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 24.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The clicked NSPathControlItem, or nil, if no item has been clicked.

The clickedPathItem is generally only valid while the action or doubleAction event is being sent.
(Read only property)

NSPathControlMBS.editable as Boolean   New in 24.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 24.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether this control is editable.

e.g. user can rename file.
(Read and Write property)

NSPathControlMBS.File as folderitem

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The path property.

When setting, an array of NSPathComponentCell objects is automatically set based on the path in url. If url is a file URL (returns true from isFileURL), the images are automatically filled with file icons, if the path exists. The URL value itself is stored in the objectValue property of the cell.

See also URL property.
(Read and Write property)

NSPathControlMBS.Menu as NSMenuMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The menu used for the path control's cells.

Available in Mac OS X v10.6 and later.
(Read and Write property)

NSPathControlMBS.pathStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The path style.

Either NSPathStyleStandard or NSPathStylePopUp.
(Read and Write property)

NSPathControlMBS.placeholderAttributedString as NSAttributedStringMBS   New in 24.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 24.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The placeholder string.

If there are no components in the path, the placeholder is drawn instead (if non-nil). We first try to draw the placeholderAttributedString. If it's nil, then the placeholderString will be drawn with correct default attributes.
(Read and Write property)

NSPathControlMBS.placeholderString as String   New in 24.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 24.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The placeholder string.

If there are no components in the path, the placeholder is drawn instead (if non-nil). We first try to draw the placeholderAttributedString. If it's nil, then the placeholderString will be drawn with correct default attributes.
(Read and Write property)

NSPathControlMBS.URL as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The path property.

When setting, an array of NSPathComponentCell objects is automatically set based on the path in url. If url is a file URL (returns true from isFileURL), the images are automatically filled with file icons, if the path exists. The URL value itself is stored in the objectValue property of the cell.

See also File property.
(Read and Write property)

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


The biggest plugin in space...