X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5bd77105934934cf38145e036d7072c2ca0b0456..128ad183497f48ce80eb077b168fe2423bdb2b23:/src/osx/cocoa/combobox.mm diff --git a/src/osx/cocoa/combobox.mm b/src/osx/cocoa/combobox.mm index 16876eef2e..1666c33b83 100644 --- a/src/osx/cocoa/combobox.mm +++ b/src/osx/cocoa/combobox.mm @@ -78,7 +78,8 @@ } @end -wxNSComboBoxControl::wxNSComboBoxControl( wxWindow *wxPeer, WXWidget w ) : wxNSTextFieldControl(wxPeer, w) +wxNSComboBoxControl::wxNSComboBoxControl( wxComboBox *wxPeer, WXWidget w ) + : wxNSTextFieldControl(wxPeer, wxPeer, w) { m_comboBox = (NSComboBox*)w; } @@ -137,7 +138,7 @@ int wxNSComboBoxControl::FindString(const wxString& text) const return result; } -wxWidgetImplType* wxWidgetImpl::CreateComboBox( wxWindowMac* wxpeer, +wxWidgetImplType* wxWidgetImpl::CreateComboBox( wxComboBox* wxpeer, wxWindowMac* WXUNUSED(parent), wxWindowID WXUNUSED(id), wxMenu* menu, @@ -183,4 +184,4 @@ wxSize wxComboBox::DoGetBestSize() const return wxSize( lbWidth, lbHeight ); } -#endif // wxUSE_COMBOBOX \ No newline at end of file +#endif // wxUSE_COMBOBOX