X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/950432e40723ab8fabdff72a98e304c8cff4b20b..9c112555198f51fcec71106530cddba95a17f3dc:/src/cocoa/menu.mm diff --git a/src/cocoa/menu.mm b/src/cocoa/menu.mm index 529f422350..fc5e4b038c 100644 --- a/src/cocoa/menu.mm +++ b/src/cocoa/menu.mm @@ -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];