wxWidgets 2.9.2,mac os 10.7, menubar in menu sample not shown

59 views
Skip to first unread message

Hagen Mölle

unread,
Nov 22, 2011, 3:12:18 AM11/22/11
to wx-u...@googlegroups.com
Hi,

I compiled wxWidgets with the following options:

./configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.5 --with-opengl

After that I compiled the 'menu' example from the sample directory executing 'make'.

I executed the example from the terminal by typing ./menu. Unfortunately the menubar of the main frame is not shown. If I focus the application, I only see the menu from the terminal.

Thanks in advance for your help.

Hagen

Dion Whittaker

unread,
Nov 22, 2011, 3:25:23 AM11/22/11
to wx-u...@googlegroups.com
Hi,

Instead of typing ./menu from the command line, try "open menu.app".
This will execute the application bundle, and the OS will have access to
the Info.plist file, and gives you the same results as if you had
clicked on the application icon.

I tried it here and it solved the problem you described.

Dion


Reply all
Reply to author
Forward
0 new messages