]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/checklst.mm
GetChildrenCount() should be const
[wxWidgets.git] / src / cocoa / checklst.mm
index abda41c2a4fed4a174b0c3767057e793dc20a128..09a347ecd2a98bbecb61bc704ae6ead6845dd137 100644 (file)
@@ -21,6 +21,20 @@ BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
 END_EVENT_TABLE()
 // WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
 
+bool wxCheckListBox::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 wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
             const wxPoint& pos,
             const wxSize& size,
@@ -39,7 +53,6 @@ bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
 
 wxCheckListBox::~wxCheckListBox()
 {
-    CocoaRemoveFromParent();
 }
 
 bool wxCheckListBox::IsChecked(size_t item) const