]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/radiobox.mm
GetChildrenCount() should be const
[wxWidgets.git] / src / cocoa / radiobox.mm
index ff0626e5c50b8907e3709fc8d51e38c2c3982b52..93d5043e4711fcda2822da5c8c85d2cac4fbf5d6 100644 (file)
@@ -13,6 +13,7 @@
 #ifndef WX_PRECOMP
     #include "wx/app.h"
     #include "wx/radiobox.h"
+    #include "wx/arrstr.h"
 #endif //WX_PRECOMP
 
 #import <AppKit/NSView.h>
@@ -22,6 +23,21 @@ BEGIN_EVENT_TABLE(wxRadioBox, wxControl)
 END_EVENT_TABLE()
 // WX_IMPLEMENT_COCOA_OWNER(wxRadioBox,NSTextField,NSControl,NSView)
 
+bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid,
+            const wxString& title,
+            const wxPoint& pos,
+            const wxSize& size,
+            const wxArrayString& choices,
+            int majorDim,
+            long style, const wxValidator& validator,
+            const wxString& name)
+{
+    wxCArrayString chs(choices);
+
+    return Create(parent, winid, title, pos, size, chs.GetCount(),
+                  chs.GetStrings(), majorDim, style, validator, name);
+}
+
 bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid,
             const wxString& title,
             const wxPoint& pos,
@@ -91,3 +107,8 @@ int wxRadioBox::GetRowCount() const
     return 0;
 }
 
+wxSize wxRadioBox::DoGetBestSize() const
+{
+    return wxSize(50,50);
+}
+