Hi everyone,
I would like to detect the action of drop image from an application to another, in this case: Sketch.
When I search in the headers of Sketch I can see the protocol MSDropableView
which is used by NSView
. So I listed the NSView
instance methods with MSDocument.currentDocument().canvasPlaceholderView().class().mocha().instanceMethods()
.
I noticed there was a method setDropDelegate_bc
that I could used with MochaJSDelegate
. However when I execute it, this method is MOUndefined
.
Is it the good solution to trigger a function on drop image?
Why setDropDelegate_bc
is MOUndefined
?
Do you have some ideas to make this?
Thanks in advance 😃