X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ee09b55620471d3e7cb10bda80cd07b6ae8172f..7475e8146203b9f75ea01247eb456209ed7b7c13:/src/cocoa/combobox.mm diff --git a/src/cocoa/combobox.mm b/src/cocoa/combobox.mm index 4101d8f3d5..ae2b9015fd 100644 --- a/src/cocoa/combobox.mm +++ b/src/cocoa/combobox.mm @@ -41,12 +41,14 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID winid, return false; m_cocoaNSView = NULL; - SetNSTextField([[NSComboBox alloc] initWithFrame:NSMakeRect(0,0,30,30)]); + SetNSTextField([[NSComboBox alloc] initWithFrame:MakeDefaultNSRect(size)]); [m_cocoaNSView release]; [GetNSTextField() setStringValue:wxNSStringWithWxString(value.c_str())]; [GetNSControl() sizeToFit]; if(m_parent) m_parent->CocoaAddChild(this); + SetInitialFrameRect(pos,size); + return true; } @@ -63,7 +65,7 @@ wxString wxComboBox::GetStringSelection() return wxEmptyString; } -void wxComboBox::SetStringSelection(wxString& selection) +void wxComboBox::SetStringSelection(const wxString& selection) { }