[vtkusers] VTK tutorial, step 5 (Cone5), OSX-Cocoa: fails to capture keyboard events

Darren Weber darren.weber.lists at gmail.com
Thu Mar 19 18:58:49 EDT 2009


I'm not yet versed in Cocoa to make the change required.  I can follow
specific instructions...  I wonder if the keyboard event capture should
apply at the level of the window or at the level of the interactor?

Best, Darren


On Thu, Mar 19, 2009 at 3:55 PM, Sean McBride <sean at rogue-research.com>wrote:

> On 3/19/09 3:48 PM, Darren Weber said:
>
> >What about lines 501-503 in vtkCocoaRenderWindow.mm, ie:
> >
> >    [theWindow makeKeyAndOrderFront:nil];
> >    [theWindow setAcceptsMouseMovedEvents:YES];
> >
> >What happens if they are changed to:
> >
> >    [theWindow makeKeyAndOrderFront:YES];
> >    [theWindow setAcceptsMouseMovedEvents:YES];
> >
> >Does that break anything?
>
> Are we talking about something entirely different now?  IAC, That would
> be a bad change.  makeKeyAndOrderFront: does not take a boolean, it
> takes a pointer to an object.
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090319/d5b03b05/attachment.htm>


More information about the vtkusers mailing list