Mouse click issue in plugin editor window on Mac OS X 10.6.8

Hi

We have had several persons report back that mouse click does not work in our plugins editor window on Mac OS X 10.6.8 in various hosts, include JUCE Plugin Host. Everything else in our plugin editor window works, timerCallbacks, all graphics look correct, etc., but mouse clicks are not being registered and nothing happens when you click the mouse button within the window. Key presses are working.

There are no issues on Mac OS X 10.7 or 10.8. We have verified this issue ourselves on a non-development machine running Mac OS X 10.6.8 by running our plugin inside the JUCE Plugin Host demo.

Is any one else experiencing this issue or could some one perhaps some pointers on what could cause this issue. We would be willing to debug this issue ourselves, however it would require a large time investment to get everything up and running on the Mac OS X 10.6.8 machine we have access to, so we are trying to ask for help here first.

This issue might be related to this one: Graphic AU/VSTs in Audacity on Mac OS X

That’s odd… Do you know whether it’s VST, AU or both?

Both VST and AU.

I went ahead and setup Xcode on the 10.6.8 Mac OS X machine and found out that our plugin worked fine when compiled using Xcode 3.2.6.

This made me wonder whether it was a problem with the deployment SDK when I compile using Xcode 4.5.2, so I changed it from “Compiler default” (not what it is) to “10.5” and the issue with the mouse clicks disappeared on the Mac OS X 10.6.8 machine. Not sure whether this is a real fix or a workaround some issue in either the Mac OS X SDK or JUCE

On the Mac OS X 10.6.8 machine, when running the faulty build of the plugin in JUCE Plugin Host, I also started getting this error in the Console apps logs after the first mouse click. The error was being repeated until I closed Plugin Host. I get no such errors when the mouse clicks work in the plugin.

11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880 11/12/12 07.40.00 Plugin Host[4384] -[JUCEWindow_3d4b6122be29d638 convertRectToScreen:]: unrecognized selector sent to instance 0x56f880

Hmm. In my code, convertRectToScreen is never called unless your build is targeted for 10.7 and above… I’ve no idea what else might be calling it - perhaps Apple’s AU classes?