Platforms to show: All Mac Windows Linux Cross-Platform
NSDraggingInfoMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Drag & Drop | MBS MacCocoa Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSDraggingInfo protocol methods are designed to be invoked from within a class's implementation of NSDraggingDestination protocol methods. The Application Kit automatically passes an object that conforms to the NSDraggingInfo protocol as the argument to each of the methods defined by NSDraggingDestination. NSDraggingInfo messages should be sent to this object; you never need to create a class that implements the NSDraggingInfo protocol.
- 12 properties
- property animatesToDestination as boolean
- property draggedImage as Variant
- property draggedImageLocation as NSPointMBS
- property draggingDestinationWindow as Variant
- property draggingFormation as Integer
- property draggingLocation as NSPointMBS
- property draggingPasteboard as Variant
- property draggingSequenceNumber as Integer
- property draggingSource as Variant
- property draggingSourceOperationMask as Integer
- property Handle as Integer
- property numberOfValidItemsForDrop as Integer
- 5 methods
- method Constructor Private
- method Constructor(Handle as Integer)
- method namesOfPromisedFilesDroppedAtDestination(dropDestination as FolderItem) as string()
- method promisedFilesDroppedAtDestination(dropDestination as FolderItem) as FolderItem()
- method slideDraggedImageTo(screenPoint as NSPointMBS)
- 14 constants
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. |
Drag Operations Constants
Constant | Value | Description |
---|---|---|
NSDragOperationAll_Obsolete | 15 |
The NSDragOperationAll constant is deprecated. Use NSDragOperationEvery instead. |
NSDragOperationCopy | 1 |
The data represented by the image can be copied. |
NSDragOperationDelete | 32 |
The data can be deleted. |
NSDragOperationEvery | -1 |
All of the above. |
NSDragOperationGeneric | 4 |
The operation can be defined by the destination. |
NSDragOperationLink | 2 | |
NSDragOperationMove | 16 |
The data can be moved. |
NSDragOperationNone | 0 |
No drag operations are allowed. |
NSDragOperationPrivate | 8 |
The operation is negotiated privately between the source and the destination. |
This class has no sub classes.
Some methods using this class:
- DragItem.NSDraggingInfoMBS as NSDraggingInfoMBS
Some events using this class:
- CustomNSScrollerMBS.draggingUpdated(sender as NSDraggingInfoMBS) as Integer
- CustomNSTextFieldMBS.draggingEntered(sender as NSDraggingInfoMBS) as Integer
- CustomNSTextViewMBS.draggingUpdated(sender as NSDraggingInfoMBS) as Integer
- CustomNSTokenFieldMBS.prepareForDragOperation(sender as NSDraggingInfoMBS) as boolean
- DesktopNSOutlineControlMBS.updateDraggingItemsForDrag(draggingInfo as NSDraggingInfoMBS)
- IKImageBrowserViewControlMBS.draggingEntered(sender as NSDraggingInfoMBS) as Integer
- IKImageBrowserViewMBS.draggingEntered(sender as NSDraggingInfoMBS) as Integer
- NSViewControlMBS.updateDraggingItemsForDrag(sender as NSDraggingInfoMBS)
- NSWindowDelegateMBS.concludeDragOperation(sender as NSDraggingInfoMBS)
- NSWindowDelegateMBS.updateDraggingItemsForDrag(sender as NSDraggingInfoMBS)
Some examples using this class:
- /MacCocoa/Custom NSViewControl Drag
- /MacCocoa/Drag Promise Receiver
- /MacControls/Custom NSView Drag
- /MacControls/Custom NSView Drop
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Database with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Simple Demo with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV TableView
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListboxTV with ContainerControl Cells
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Hierarchical & Flat/ListBoxTV OutlineView
- /MacControls/Listbox and TableView Demos/NSOutlineView/Disk Browser
Blog Entries
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSDraggingImageComponentMBS - NSDraggingItemMBS