Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSDraggingSessionMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Drag & Drop MBS Cocoa Plugin 13.1 Yes No No Yes, macOS only No
Function: The NSDraggingSession class encompases a drag and drop action and allows modification of the drag while in progress.
Notes:
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.

Feedback, Comments & Corrections

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 for this class:

Some examples which use this class:


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


NSDraggingItemMBS   -   NSEnumeratorMBS




Links
MBS Xojo Plugins