Platforms to show: All Mac Windows Linux Cross-Platform

NSDraggingSessionMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Drag & Drop MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The NSDraggingSession class encompases a drag and drop action and allows modification of the drag while in progress.

You start a new dragging session by calling the NSView method beginDraggingSessionWithItems method. This method immediately returns and you can further modify the properties of the dragging session. The actual drag begins at the next turn of the run loop.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Constants

Constant Value Description
NSDraggingContextOutsideApplication 0 Whether a drag terminates within or outside the application. The dragging terminates outside the application.
Available in OS X v10.7 and later.
NSDraggingContextWithinApplication 1 Whether a drag terminates within or outside the application. The dragging terminates within the application.
Available in OS X v10.7 and later.

Visual Format Constants

Constant Value Description
NSDraggingFormationDefault 0 The system determined formation.
Available in OS X v10.7 and later.
NSDraggingFormationList 3 Drag images are laid out vertically, non-overlapping with the left edges aligned.
Available in OS X v10.7 and later.
NSDraggingFormationNone 1 Drag images maintain their set positions relative to each other/
Available in OS X v10.7 and later.
NSDraggingFormationPile 2 Drag images are placed on top of each other with random rotations.
Available in OS X v10.7 and later.
NSDraggingFormationStack 4 Drag images are laid out overlapping diagonally.
Available in OS X v10.7 and later.

This class has no sub classes.

Some events using this class:

Some examples using this class:

Blog Entries


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


NSDraggingItemMBS   -   NSEdgeInsetsMBS


The biggest plugin in space...