I have a code which drag and drop midi file from the plugin to a DAW. In every DAW I tested before it works (in Logic Pro with BigSur it works too). But in Logic Pro (macOS 12.2.1) it doesn’t work.
Are you testing on an Intel machine each time? If your Monterey machine is running on Arm rather than Intel, then perhaps the issue is to do with the plugin being run in a dedicated process.
Have you tried debugging at all? Does writing to tempFile definitely succeed before starting the drag, for example?
My computer is running on Intel, but we test it on M1 too. But I don’t have an option to debug it with M1. For instance, Cubase (M1) is working. Now we see this problem only in Logic Pro with M1.
Are you sure that it must be false as a second parameter?
I tested on an M1 machine. I don’t think it’s required to set the second parameter to true. It’s maybe safer to set it to false, especially if you delete the file afterward. But I’m not sure. You have to try it out.