Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSPathControlMBS class.

NSPathControlMBS.allowedTypes as String()   New in 24.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 24.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Specifies the allowed types when the control isEditable.

The allowedTypes can contain a file extension (without the period that begins the extension) or UTI (Uniform Type Identifier). To allow folders, include the UTI 'public.folder'. To allow all types, use 'nil'. If allowedTypes is an empty array, nothing will be allowed. The default value is 'nil', allowing all types.

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.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.pathItems as NSPathControlItemMBS()   New in 24.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 24.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The array of NSPathControlItems currently being displayed.

Each item must be an NSPathControlItemMBS. Do not subclass NSPathControlItemMBS.

NSPathControlMBS.setAllowedTypes(items() as String)   New in 24.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 24.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Specifies the allowed types when the control isEditable.

The allowedTypes can contain a file extension (without the period that begins the extension) or UTI (Uniform Type Identifier). To allow folders, include the UTI 'public.folder'. To allow all types, use 'nil'. If allowedTypes is an empty array, nothing will be allowed. The default value is 'nil', allowing all types.

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.setPathItems(items() as NSPathControlItemMBS)   New in 24.2

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

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


The biggest plugin in space...