Understanding 32bit Mac VST Integration


#1

Hi,

I just browsed through the platform specific JUCE code and stumbled over the VST2 implementation for Mac 32bit (Carbon). I wonder if somebody (who has more experience then me with Mac development) can explain what is happening there. The VST interface supplys a WindowRef (Carbon) and for what I understand, this reference is used to create a NSWindow (Cocoa) which is then simply put over the Carbon View. Does the newly created Cocoa window (via" initWithWindowRef") get all necessary events? (Mouse, Drawing, Keyboard) Or do I miss something? As I understand it, only the position of the window has to be adjusted when the dummy window (or view) position is changed.


#2

The cocoa window gets all the necessary events without the host needing to pass them on (as was the case in Carbon).