diff --git a/interface/wx/combobox.h b/interface/wx/combobox.h index a23358d2a8..2ba41dca3b 100644 --- a/interface/wx/combobox.h +++ b/interface/wx/combobox.h @@ -38,7 +38,8 @@ allows the user to choose from the list of options but doesn't allow to enter a value not present in the list. @style{wxCB_SORT} - Sorts the entries in the list alphabetically. + Sorts the entries in the list alphabetically. Notice that this style + is not currently implemented in wxOSX. @style{wxTE_PROCESS_ENTER} The control will generate the event @c wxEVT_TEXT_ENTER (otherwise pressing Enter key is either processed internally by the diff --git a/src/osx/combobox_osx.cpp b/src/osx/combobox_osx.cpp index faf325a867..f529d019f9 100644 --- a/src/osx/combobox_osx.cpp +++ b/src/osx/combobox_osx.cpp @@ -56,9 +56,6 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id, if ( !wxControl::Create( parent, id, pos, size, style, validator, name ) ) return false; - wxASSERT_MSG( !(style & wxCB_SORT), - "wxCB_SORT not currently supported by wxOSX/Cocoa"); - SetPeer(wxWidgetImpl::CreateComboBox( this, parent, id, NULL, pos, size, style, GetExtraStyle() )); MacPostControlCreate( pos, size );