Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSDraggingSessionMBS class.

NSDraggingSessionMBS.animatesToStartingPositionsOnCancelOrFail as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Drag & Drop MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Controls whether the dragging image animates back to its starting point on a cancelled or failed drag.

This property should be set immediately after creating the dragging session.

The default value is true.
Available in OS X v10.7 and later.
(Read and Write computed property)

Some examples using this property:

NSDraggingSessionMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Drag & Drop MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The private constructor.

NSDraggingSessionMBS.draggingFormation as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Drag & Drop MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Controls the dragging formation when the drag is not over the source or a valid destination.

Setting this value causes the dragging formation to change immediately, provided a valid destination has not overriden the behavior. If the dragging session hasn't started yet, the dragging items will animate into formation immediately upon start. It is highly recommended to never change the formation when starting a drag.

The default value is NSDraggingFormationNone.
Available in OS X v10.7 and later.
(Read and Write computed property)

NSDraggingSessionMBS.draggingLeaderIndex as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Drag & Drop MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The index of the dragging item under the cursor.

The index is to an element in the array passed as the first parameter to the NSView method beginDraggingSessionWithItem.

The default is the NSDraggingItem closest to the location field in the event parameter that was passed to the beginDraggingSessionWithItems method.

Available in OS X v10.7 and later.

NSDraggingSessionMBS.draggingLocation as NSPointMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Drag & Drop MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The current cursor location of the drag in screen coordinates. (read-only)

Available in OS X v10.7 and later.

NSDraggingSessionMBS.draggingPasteboard as NSPasteboardMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Drag & Drop MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the pasteboard object that contains the data being dragged. (read-only)

Available in OS X v10.7 and later.

NSDraggingSessionMBS.draggingSequenceNumber as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Drag & Drop MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a number that uniquely identifies the dragging session. (read-only)

Available in OS X v10.7 and later.

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


The biggest plugin in space...