Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSDraggingInfoMBS class.
NSDraggingInfoMBS.Constructor Private
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Drag & Drop | MBS MacCocoa Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
See also:
NSDraggingInfoMBS.Constructor(Handle as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Drag & Drop | MBS MacCocoa Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Handle should be a Cocoa object reference implementing the NSDraggingInfo protocol.
See also:
NSDraggingInfoMBS.namesOfPromisedFilesDroppedAtDestination(dropDestination as FolderItem) as string()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Drag & Drop | MBS MacCocoa Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
dropDestination: A folderitem specifying the drop location for promised files.
Return an array of file names, which are not full paths.
Drag destinations should invoke this method within their performDragOperation method. The source may or may not have created the files by the time this method returns.
NSDraggingInfoMBS.promisedFilesDroppedAtDestination(dropDestination as FolderItem) as FolderItem()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Drag & Drop | MBS MacCocoa Plugin | 14.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
dropDestination: A folderitem specifying the drop location for promised files.
Return an array of folderitems for the files.
The files may not yet exist.
Drag destinations should invoke this method within their performDragOperation method. The source may or may not have created the files by the time this method returns.
Some examples using this method:
NSDraggingInfoMBS.slideDraggedImageTo(screenPoint as NSPointMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Drag & Drop | MBS MacCocoa Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
screenPoint: A point that specifies a location in the screen coordinate system.
This method can be used to adjust the location to which the dragged image will slide back if the drag is rejected.
It should only be invoked from within the destination's implementation of prepareForDragOperation, and will only have effect if the destination rejects the drag.
This method is invoked after the user has released the image but before it is removed from the screen.
The items on this page are in the following plugins: MBS MacCocoa Plugin.