How to get keyboard events working on Mac OS X?
On Mac OS X, there are (at least) two kinds of executables: • Application Bundles • plain UNIX executables For a program to be able to display a graphical interface (that is, display windows that allow mouse and keyboard interaction) it really should be an Application Bundle. If a plain UNIX executable tries, there will be various bugs, such as keyboard and mouse events not working reliably. Many, but not all, of the example VTK applications are built as plain UNIX executables, and thus have these problems. This is VTK bug 2025. When you build your own VTK application, it is best to make it in the form of an Application Bundle. With CMake 2.0.5 or later, simply add the following to your CMakeLists.
On Mac OS X, there are (at least) two kinds of executables: • Application Bundles • plain UNIX executables For a program to be able to display a graphical interface (that is, display windows that allow mouse and keyboard interaction) it really should be an Application Bundle. If a plain UNIX executable tries, there will be various bugs, such as keyboard and mouse events not working reliably. Many, but not all, of the example VTK applications are built as plain UNIX executables, and thus have these problems. This is VTK bug 2025. When you build your own VTK application, it is best to make it in the form of an Application Bundle.