View Single Post
Old 05-18-2010, 12:26 PM   #1
MaxBro
Human being with feelings
 
Join Date: Apr 2010
Location: Moscow, Russia
Posts: 19
Default [super mouseDown: pEvent] bug

I found this in IGraphicsCocoa.mm :

- (void) mouseDown: (NSEvent*) pEvent
{

[super mouseDown: pEvent]; /// <--- this
int x, y;

[self getMouseXY: pEvent x:&x y:&y];
if ([pEvent clickCount] > 1) {
mGraphics->OnMouseDblClick(x, y, &GetMouseMod(pEvent));
}
else {
mGraphics->OnMouseDown(x, y, &GetMouseMod(pEvent));
}
}

The plugin loses it's focus and doesn't get it when I click on it's window in Logic (so mouseovers and keyboard stop workin). When I open the plugin in Ableton Live 8 keyboard focus goes to Live and the plugin reads keyboard only after I click into it's window. So, what for we need this expression? As I know it forward events. When I get rid of this expression everything seems to work ok both in Ableton & Logic.
MaxBro is offline   Reply With Quote