<br>What about lines 501-503 in vtkCocoaRenderWindow.mm, ie:<br><br> [theWindow makeKeyAndOrderFront:nil];<br> [theWindow setAcceptsMouseMovedEvents:YES];<br><br>What happens if they are changed to:<br><br> [theWindow makeKeyAndOrderFront:YES];<br>
[theWindow setAcceptsMouseMovedEvents:YES];<br>
<br>Does that break anything?<br><br>Best, Darren<br><br><br><br><br><div class="gmail_quote">On Thu, Mar 19, 2009 at 3:32 PM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On 3/19/09 3:09 PM, Darren Weber said:<br>
<br>
>Thanks for pointing out your bug report - I didn't know how to search for<br>
>bug reports on VTK. BTW, I see many of the links in that bug report are now<br>
>broken, but this one survives:<br>
><a href="http://www.cocoabuilder.com/archive/message/cocoa/2008/12/11/225157" target="_blank">http://www.cocoabuilder.com/archive/message/cocoa/2008/12/11/225157</a><br>
><br>
>So where do you include this tip to use:<br>
><br>
>#include <CoreServices/CoreServices.h><br>
>ProcessSerialNumber psn = { 0, kCurrentProcess };<br>
>TransformProcessType( &psn, kProcessTransformToForegroundApplication );<br>
><br>
>Does this code belong in a VTK Cocoa render class? I see the following<br>
>potential locations for this code:<br>
><br>
>VTK/Rendering/vtkCocoaGLView.h<br>
>VTK/Rendering/vtkCocoaGLView.mm<br>
>VTK/Rendering/vtkCocoaRenderWindow.h<br>
>VTK/Rendering/vtkCocoaRenderWindow.mm<br>
>VTK/Rendering/vtkCocoaRenderWindowInteractor.h<br>
>VTK/Rendering/vtkCocoaRenderWindowInteractor.mm<br>
<br>
</div>Yeah, somewhere there. I forget where I tried it... you might try<br>
vtkCocoaRenderWindowInteractor::vtkCocoaRenderWindowInteractor.<br>
<div class="im"><br>
>Would that give any Cocoa render window the capacity to receive keyboard<br>
>events, regardless of the MACOSX_BUNDLE setting for CMake?<br>
<br>
</div>Basically, yes.<br>
<br>
I'd be interested to hear your results. It might be a solution to this<br>
bug at long last, but is something that needs lots of testing.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">____________________________________________________________<br>
Sean McBride, B. Eng <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>
Rogue Research <a href="http://www.rogue-research.com" target="_blank">www.rogue-research.com</a><br>
Mac Software Developer Montréal, Québec, Canada<br>
<br>
<br>
</div></div></blockquote></div><br>