[vtkusers] [Probably repetitive] Tcl VTK under OSX 10.5.4 mouse/keyboard events?
Sean McBride
sean at rogue-research.com
Tue Sep 2 13:55:05 EDT 2008
On 9/2/08 8:41 AM, William Ray said:
>VTK fresh from CVS, compiling on an essentially virgin 10.5.4 OSX
>system.
>
>vtk Medical1.tcl
>
>Window won't focus - this is well known and expected. The old
>add a resource trick doesn't work. Everyone suggests stuffing
>it into an .app wrapper.
>
>
>
>This is where my problem seems to go sideways from the
>recommendations. When wrapped as an app, I can double-click
>the app and I get a vtk window running Medical1.tcl that
>can be brought to the front, and the proper vtk menubar elements
>become available - BUT - it still isn't accepting keyboard or
>mouse events to the interface. It _is_ accepting keyboard to
>the "system", at the level that open_apple-Q causes the .app
>to quit, but events that should be trapped by the tcl script
>don't seem to be getting there.
>
>Please, don't point me at the standard "put it in a .app" page,
>etc. Been there done that.
From your comment, I assume you have seen:
<http://public.kitware.com/Bug/view.php?id=2025>
Just checking. :) Obviously you have read up on all this.
I've personally only used VTK from C++, so I can't comment on your Tcl-
specific issues.
You might want to look at my most recent comment in the bug. Adding the
Info.plist info to your flat executable may do the trick, I don't think
anyone has tried...
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the vtkusers
mailing list