I’m working on a RTAS plug-in (using Juce 1.53 and PT SDK 9) and got some feature requests to provide the ProTools auto parameter view feature.
In the meantime I learned that this feature refers to the ChooseControl function in the ProTools SDK. ProTools calls this function whenever a Ctrl-Cmd-Click is registered. However Juce seems to accept all mouse events and ProTools doesn’t get noticed about the click.
I already got this running under windows simply by not accepting a related mouse event.
However I got stuck on the Mac. When I got things right, Juce creates a JuceNSView for the plug-in and also a JuceNSWindow. While the view has no parent, the window is child of the host window. The view handles all mouse events and translates them into the Juce world. I guess the event needs to be send over to the host somehow. I already tried to call mouseDown in the host window and host view instance, but that didn’t do it. I managed to get a ChooseControl call once I set setIgnoresMouseEvents(true) for the plug-in window, but this of course disabled the plug-in mouse handling. At least I know that I’m on the right way.
I’m not so much into Mac event handling, hope one of you can give me some hint.