Hi, osgViewer::GraphicsWindowCarbon and wxWidgets do not work well together on Mac OSX in case you are using dynamic wxWidget event handlers (event handlers that are linked by using wxEvtHandler::Connect). The "quit-event" is not caught by wxWidgets but is handled by OSG. And this means that sometimes your application does not quit. If you are using static wxWidget event handlers (like in the osgViewerWX example) the example seems to work. But I am not sure if it works in general or if it is a coincidence which library is initialized first.
I recommend to disable the OSG quit event handlers in GraphicsWindowCarbon altogether when using wxWidgets. As the OSG event handlers are configured during the static initialization phase of the library I do not see any other solution than commenting out the event handler part. I would have preferred some kind of parameter during runtime but this seems to be difficult (especially when considering a platform independent handling). Any other ideas? BTW: I am using wxWidget 2.8.x and osg 2.8.2 but I do not think that this matters. BTW2: I do not want to use / did not test the Cocoa graphics window because I am still using the Carbon wxWidget library and I do not believe that it is wise to mix Cocoa and Carbon in general. Cheers, Hartwig ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27851#27851 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

