MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

InstallDragImageMBS
global method, Drag & Drop, MBS CocoaExtras Plugin (NSDragPatch),
Plugin version: 15.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: Install drag image patch.
Notes:
This allows you to use retina NSImage for drag image with using Xojo's built in drag and drop classes.
So call InstallDragImageMBS once in app.open to initialize.

Than before call DragItem.Drag, call SetNextDragImageMBS and provide a 2x image as NSImageMBS object.
See example project for details.

Some examples using this method:

SetNextDragImageMBS(Img as NSImageMBS)
global method, Drag & Drop, MBS CocoaExtras Plugin (NSDragPatch),
Plugin version: 15.1, Mac: Yes, Win: No, Linux: No, Console & Web: No, Feedback.

Function: Sets which image to use for next drag.
Notes: Once image has been replaced for Xojo's drag, the image reference is freed by plugin.

Some examples using this method:

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




Links
MBS Real Studio Plugins