NSPathControlMBS properties

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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 computed property)

NSPathControlMBS.clickedPathComponentCell as NSPathComponentCellMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method 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.

NSPathControlMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a new path control with size 100/100 and position 0/0
Example
dim t as new NSPathControlMBS

On success the handle property is not zero.

See also:

NSPathControlMBS.Constructor(Handle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates an object based on the given NSPathControl handle.
Example
dim t as new NSPathControlMBS(0, 0, 100, 100)
dim v as new NSPathControlMBS(t.handle)

MsgBox str(v.Bounds.Width)+" x "+str(v.Bounds.Height)

The handle is casted to a NSPathControl and the plugin retains this handle.

See also:

NSPathControlMBS.Constructor(left as Double, top as Double, width as Double, height as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a new path control with the given size and position.
Example
dim x as new NSPathControlMBS(0, 0, 100, 100)

On success the handle property is not zero.

See also:

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 computed 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 computed property)

NSPathControlMBS.pathComponentCells as NSPathComponentCellMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns an array of the NSPathComponentCell objects currently being displayed.

Available in Mac OS X v10.5 and later.

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 computed property)

NSPathControlMBS.setDraggingSourceOperationMask(mask as Integer, local as boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Configures the default value returned from draggingSourceOperationMaskForLocal.

mask: The types of drag operations allowed.
isLocal: If true, mask applies when the drag destination object is in the same application as the receiver; if false, mask applies when the destination object is outside the receiver's application.

By default, draggingSourceOperationMaskForLocal returns NSDragOperationEvery when isLocal is true and NSDragOperationNone when isLocal is false.

Available in Mac OS X v10.5 and later.

NSPathControlMBS.setPathComponentCells(cells() as NSPathComponentCellMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the array of NSPathComponentCell objects currently being displayed.

cells: An array of NSPathComponentCell objects.

Each item in the array must be an instance of NSPathComponentCell or a subclass thereof. You cannot set this value to nil, but you can set it to an empty array.

Available in Mac OS X v10.5 and later.

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 computed property)

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


💬 Ask a question or report a problem