<br>Hey Sean,<br><br>Thanks for pointing out your bug report - I didn't know how to search for bug reports on VTK. BTW, I see many of the links in that bug report are now broken, but this one survives:<br><a href="http://www.cocoabuilder.com/archive/message/cocoa/2008/12/11/225157">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 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>Perhaps vtkCocoaRenderWindowInteractor.mm is the most likely suspect?<br>
<br>Would that give any Cocoa render window the capacity to receive keyboard events, regardless of the MACOSX_BUNDLE setting for CMake?<br><br>Best, Darren<br><br><br><br><div class="gmail_quote">On Thu, Mar 19, 2009 at 2:34 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><div></div><div class="h5">On 3/19/09 2:25 PM, Darren Weber said:<br>
<br>
>Looking at the VTK tutorial examples, I see that keyboard events are not<br>
>captured in Cone5 on OSX (10.5.6). Although mouse events are fine, the<br>
>keyboard events are passed off to the most recent application (Terminal in<br>
>my case). The Cone5 example was not compiled as an OSX bundle, it was<br>
>compiled with all the default options set in the VTK-5-2 cvs checkout. Is<br>
>there a way to get this working - should I change something in the VTK build<br>
>or just something in the Cone5 build?<br>
<br>
</div></div>Have you read this?<br>
<<a href="http://public.kitware.com/Bug/view.php?id=2025" target="_blank">http://public.kitware.com/Bug/view.php?id=2025</a>><br>
<br>
I tried TransformProcessType() a few months ago and had decent results,<br>
you could give it a try...<br>
<font color="#888888"><br>
--<br>
____________________________________________________________<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>
</font></blockquote></div><br>