]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/menu.mm
The mmedia contrib requires sys/soundcard.h on unix, so disable it on unix
[wxWidgets.git] / src / cocoa / menu.mm
index 529f422350d674e6dccfd96c166c16bad1ba2644..fc5e4b038cfad1667e76852743ee82ac1c58e9fa 100644 (file)
@@ -128,6 +128,17 @@ bool wxMenuBar::Create(long style)
     return true;
 }
 
+wxMenuBar::wxMenuBar(size_t n,
+                     wxMenu *menus[],
+                     const wxString titles[],
+                     long style)
+{
+    Create(style);
+
+    for ( size_t i = 0; i < n; ++i )
+        Append(menus[i], titles[i]);
+}
+
 wxMenuBar::~wxMenuBar()
 {
     [m_cocoaNSMenu release];