-
- if (style & wxCB_READONLY)
- wxLogWarning("wxCB_READONLY style not supported by OS X Cocoa. Use wxChoice instead.");
-
- if (style & wxCB_SORT)
- wxLogWarning("wxCB_SORT style not currently supported by OS X Cocoa.");
-
- m_peer = wxWidgetImpl::CreateComboBox( this, parent, id, NULL, pos, size, style, GetExtraStyle() );
+
+ wxASSERT_MSG( !(style & wxCB_SORT),
+ "wxCB_SORT not currently supported by wxOSX/Cocoa");
+
+ SetPeer(wxWidgetImpl::CreateComboBox( this, parent, id, NULL, pos, size, style, GetExtraStyle() ));