Xojo Developer Conference
Join us from 25th to 27th April 2018 in Denver.

Platforms to show: All Mac Windows Linux Cross-Platform

NSDraggingSessionMBS class

class, Drag & Drop, MBS Cocoa Plugin (NSDrag), class NSDraggingSessionMBS,
Plugin version: 13.1, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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.

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 tutorial videos