]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/radiobox.mm
consume less CPU while waiting for thread to terminate (patch 883268)
[wxWidgets.git] / src / cocoa / radiobox.mm
index 37cffde012cd28d18ab0a1f61480038e8be19f9d..216038e63d4829f8008c453f34628eb78b042f32 100644 (file)
@@ -9,8 +9,12 @@
 // Licence:    wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
-#include "wx/app.h"
-#include "wx/radiobox.h"
+#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+    #include "wx/app.h"
+    #include "wx/radiobox.h"
+    #include "wx/arrstr.h"
+#endif //WX_PRECOMP
 
 #import <AppKit/NSView.h>
 
@@ -19,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,