header image
[ # ] wxWidgets application out of focus in Mac OS X
August 29th, 2010 under Mac OS X, Programming

When starting a compiled wxWidgets application in Mac OS X you may have problems getting the focus of the application. You can solve this problem by creating a Mac OS X bundle application and start this instead of the binary:

http://wiki.wxwidgets.org/WxMac_Issues#Building_a_MacOSX_application_bundle

Make sure you configure Xcode (or whatever IDE you are using) to use the bundle or start the application manually.