X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bed6fe0c16ea3f54fffb8797432c36ae355ba765..da3f3e049a3bcd9db16d73dd83c007e12f6c95e1:/src/cocoa/listbox.mm diff --git a/src/cocoa/listbox.mm b/src/cocoa/listbox.mm index 2f35c368cd..a379cdd02e 100644 --- a/src/cocoa/listbox.mm +++ b/src/cocoa/listbox.mm @@ -30,6 +30,20 @@ BEGIN_EVENT_TABLE(wxListBox, wxListBoxBase) END_EVENT_TABLE() WX_IMPLEMENT_COCOA_OWNER(wxListBox,NSTableView,NSControl,NSView) +bool wxListBox::Create(wxWindow *parent, wxWindowID winid, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + long style, + const wxValidator& validator, + const wxString& name) +{ + wxCArrayString chs(choices); + + return Create(parent, winid, pos, size, chs.GetCount(), chs.GetStrings(), + style, validator, name); +} + bool wxListBox::Create(wxWindow *parent, wxWindowID winid, const wxPoint& pos, const wxSize& size,