Running wxWidgets App on OSX
-
- CodeLite Expert
- Posts: 159
- Joined: Mon Nov 03, 2008 9:17 pm
- Contact:
Running wxWidgets App on OSX
Hi, I've just got my first Mac and I'm trying to build wxWidgets application using CodeLite rev 2841. The application has been build successfully, but when I try to run it, then it is opened in a terminal and I'm not able to operate with the application's frame - only active window is the terminal window. Also menu shown on the top of my LCD belongs to the terminal, not to the wxWidgets application. The same problem occurs also if I run the application directly from Finder. Should I specify some special option during the application's build to avoid displaying of the terminal window?
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Running wxWidgets App on OSX
Make sure you have read the HOW TO POST thread
-
- CodeLite Expert
- Posts: 159
- Joined: Mon Nov 03, 2008 9:17 pm
- Contact:
Re: Running wxWidgets App on OSX
Thank you! I tried to search this forum before but I probably used wrong query I found the solution here: http://wiki.wxwidgets.org/WxMac-specific_topics. It was pretty simple; I've just added these program lines to my code
and everything(?) started to work perfectly.
Best regards
Michal
Code: Select all
#include <ApplicationServices/ApplicationServices.h>
ProcessSerialNumber PSN;
GetCurrentProcess(&PSN);
TransformProcessType(&PSN,kProcessTransformToForegroundApplication);
Best regards
Michal
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Running wxWidgets App on OSX
Nice, I was not aware of this solution, I simply creates a bundle on Mac, since it is the native thing to do on Mac.
Eran
Eran
Make sure you have read the HOW TO POST thread