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 |
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.
- 3 properties
- property Handle as Integer
- property animatesToStartingPositionsOnCancelOrFail as boolean
- property draggingFormation as Integer
- 5 methods
- method Constructor Private
- method draggingLeaderIndex as Integer
- method draggingLocation as NSPointMBS
- method draggingPasteboard as NSPasteboardMBS
- method draggingSequenceNumber as Integer
- 7 constants
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:
- CustomNSScrollerMBS.draggingSessionSourceOperationMaskForDraggingContext(session as NSDraggingSessionMBS, context as Integer) as Integer
- CustomNSSearchFieldMBS.draggingSessionMovedToPoint(session as NSDraggingSessionMBS, screenPoint as NSPointMBS)
- CustomNSTextFieldMBS.draggingSessionWillBeginAtPoint(session as NSDraggingSessionMBS, screenPoint as NSPointMBS)
- CustomNSTokenFieldMBS.ignoreModifierKeysForDraggingSession(session as NSDraggingSessionMBS) as boolean
- CustomNSViewMBS.draggingSessionEndedAtPoint(session as NSDraggingSessionMBS, screenPoint as NSPointMBS, operation as Integer)
- CustomNSViewMBS.draggingSessionSourceOperationMaskForDraggingContext(session as NSDraggingSessionMBS, context as Integer) as Integer
- CustomNSViewMBS.ignoreModifierKeysForDraggingSession(session as NSDraggingSessionMBS) as boolean
- CustomPDFViewMBS.draggingSessionMovedToPoint(session as NSDraggingSessionMBS, screenPoint as NSPointMBS)
- NSCollectionViewControlMBS.draggingSessionEnded(session as NSDraggingSessionMBS, screenPoint as NSPointMBS, dragOperation as Integer)
- NSOutlineControlMBS.draggingSessionEnded(session as NSDraggingSessionMBS, screenPoint as NSPointMBS, operation as Integer)
Some examples using this class:
Blog Entries
- MonkeyBread Software Releases the MBS Real Studio plug-ins in version 13.1
- MBS Real Studio Plugins, version 13.1pr9
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSDraggingItemMBS - NSEdgeInsetsMBS