I want to port my JUCE-based plugin to AU, but got hell of bad experiences in the last day. (JUCE-based VST version on Windows works very well and always did).
In Logic 8 and also in AU Lab, Mouse Movement Events seem not to be send to the plugin directly when the mouse is not dragging. That’s why the JUCE AU wrapper just polls the mouse position every 20 seconds and creates internal mouse movement messages (a very hacky approach).
The weird thing is, that in AU Lab, the mouseEnter() and mouseLeave() functions get called more or less randomly, or at least the painting of the controls is.
When I open several instances of the plugin, sometimes the mouseEnter or mouseLeave functions don’t seem to get called, or the buttons flash up for some milliseconds and then are grayed again.
Also some beta testers told me, that after a while of using the plugin in Logic 8, no repainting was occuring anymore for the knobs/buttons or level meters. Clicking on them had still some effect (one does hear it), but no visual update would be made.
Even worse: After closing the project and opening again (even after closing Logic 8 ), this would still be the case: no visual updates anymore. Only solution: start the plugin again.
All this problems occured in Logic 8. In Logic 7 or Ableton 7, it seems to be no problem. In AU Lab there are also those “highlighting” problems with mouseEnter() or mouseExit(). Since Logic 8 and AU Lab are, as far as I know, Cocoa based, and JUCE Carbon based, I think that the problem lies in there. But I don’t know what it is, since I am a 99% Windows coder. I guess Logic 7 and Ableton 7 are Carbon based, not Cocoa based.
So if anyone had this experiences, and knows what’s the problem, please let me know if you have any valuable information.
PS: Same “highlighting” problems with the JUCE Demo AU in AU Lab or Logic 8