COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
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
Old 05-18-2010, 12:48 PM   #2
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 10,137
Default

That looks like a debug instruction that got committed by mistake. We'll take it out, thanks for pointing it out.
schwa is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.