title: Empty wxWidgets menus on OSX
body: <p>I'm using <a href="http://sourceforge.net/projects/wxwindows/files/2.9.4/" rel="nofollow noreferrer"><strong>wxWidgets 2.9.4</strong></a> on <strong>OSX 10.8.3</strong> and <a href="https://github.com/wxWidgets/wxWidgets/blob/22ab2de0eef56670d90f90b66d4c50a7bb62473e/docs/osx/install.txt#L28" rel="nofollow noreferrer">built the library for <strong>Cocoa</strong></a>.</p>
  
  <p>I want to add a menu bar with some menus to a <code>wxFrame</code>:</p>
  
  <pre><code>wxMenuBar* menuBar = new wxMenuBar();
  
  wxMenu* fileMenu = new wxMenu();
  wxMenu* helpMenu = new wxMenu();
  
  helpMenu-&gt;Append(wxID_ABOUT, wxT("About"));
  fileMenu-&gt;Append(wxID_EXIT, wxT("Exit"));
  
  menuBar-&gt;Append(fileMenu, wxT("File"));
  menuBar-&gt;Append(helpMenu, wxT("About"));
  
  SetMenuBar(menuBar);
  </code></pre>
  
  <p>Since i'm using standard IDs for adding menu items(as described <a href="http://wiki.wxwidgets.org/WxMac-specific_topics#Let_wx_identify_menu_items_by_their_ID" rel="nofollow noreferrer">here</a>), it automatically moves <strong>About</strong> and <strong>Exit</strong> to application menu(I think it's called <a href="https://github.com/wxWidgets/wxWidgets/blob/master/include/wx/osx/menu.h#L180" rel="nofollow noreferrer"><code>apple</code></a> <a href="https://github.com/wxWidgets/wxWidgets/blob/master/src/osx/menu_osx.cpp#L529" rel="nofollow noreferrer"><code>menu</code></a>), but also makes <strong>File</strong> and <strong>Help</strong> menus empty:</p>
  
  <p><img src="https://i.stack.imgur.com/BWFe6.png" alt="Demonstration"></p>
  
  <p>Are there any ways to hide those empty menus?</p>
  
  <p>Actually I tried to remove them:</p>
  
  <pre><code>#if defined(__WXMAC__) || defined(__WXOSX__) || defined(__WXOSX_COCOA__)
      menuBar-&gt;Remove(0);
      menuBar-&gt;Remove(0);
  #endif
  </code></pre>
  
  <p>but that caused the about and exit menu items <strong>HelpText</strong>, not to be displayed on my frame <strong>StatusBar</strong> (might have other side effects as well.)</p>