Hi Jules,
JUCE Version : 1.51
OS : 10.5 & 10.6
I have gone through the post regarding shared window focus issue : http://www.rawmaterialsoftware.com/viewtopic.php?t=&f=&p=24594
But I still have focus issue on juce component if I am adding it to third party NSWindow. I tried to resolve the issue and added following code to
juce_mac_NSViewComponentPeer.mm file
- (void) viewDidMoveToWindow
{
int options = NSTrackingMouseEnteredAndExited |
NSTrackingActiveAlways |
NSTrackingMouseMoved |
NSTrackingInVisibleRect;
NSTrackingArea *ta;
ta = [[NSTrackingArea alloc] initWithRect:NSZeroRect
options:options
owner:self
userInfo:nil];
[self addTrackingArea:ta];
[ta release];
if (owner != 0)
owner->viewMovedToWindow();
}
Then Juce::Component starts receiving mouseOver and MouseMoved events but breaks mouseDrag event when dragged out side juce::Component, e.g if i drag a slider and if mouse cursor goes out of juce::Component, then dragging stops.
Everything works fine in juce standalone application. Even I checked these events with cocoa application everything works fine.
Please help me in solving this issue.
Thanks & Regards,
Dheeraj.
