[vtkusers] VTK tutorial, step 5 (Cone5), OSX-Cocoa: fails to capture keyboard events
Michael Jackson
mike.jackson at bluequartz.net
Fri Mar 20 18:19:53 EDT 2009
I can't remember all the interactions but the trouble I am thinking is
that what if someone is writing an application that does some
background stuff (like animating) and if there is something in the
interactor that is constantly bringing the window to the front that is
going to be a bit annoying.
I have no idea if that is going to happen or not but it seems
awfully likely. Then again, my patch/hack may have just been skirting
the issue and doesn't really solve anything. I didn't really test it
thoroughly. I just hacked it into my code to get my little test
program to take key events.
Just my thoughts. Fix it however you want to but I am thinking a
_thorough_ test suite is going to be needed to figure out if any fix
really "works".. or someone could ask on one of the Apple lists ;-)..
---
Mike Jackson www.bluequartz.net
On Mar 20, 2009, at 6:12 PM, Clinton Stimpson wrote:
> Michael Jackson wrote:
>> I vote for #1.
>>
>> #2 gets "interesting" for apps that take command line arguments
>>
>> #3 - VTK doesn't know when _you_ want your application to come to
>> the front. Only _you_ know that so I don't think putting the fix in
>> any deeper than the examples is a good idea.
>
> Can you assume that if the user makes a vtkRenderWindowInteractor,
> they want events to work? That's the job of the Interactor, to
> handle those events.
>
> Clint
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list