]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/radiobox.mm
removed OnIdle() which didn't compile any longer
[wxWidgets.git] / src / cocoa / radiobox.mm
index 71b8994bad8f880546692d5e7db85a258442664d..db1e609dcaa7025dd045db8a188b151e20ff3c3f 100644 (file)
@@ -12,6 +12,8 @@
 #include "wx/app.h"
 #include "wx/radiobox.h"
 
+#import <AppKit/NSView.h>
+
 IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
 BEGIN_EVENT_TABLE(wxRadioBox, wxControl)
 END_EVENT_TABLE()
@@ -28,7 +30,8 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid,
 {
     if(!CreateControl(parent,winid,pos,size,style,validator,name))
         return false;
-    m_cocoaNSView = NULL;
+    SetNSView([[NSView alloc] initWithFrame: NSMakeRect(10,10,20,20)]);
+    [m_cocoaNSView release];
     if(m_parent)
         m_parent->CocoaAddChild(this);
     return true;
@@ -36,7 +39,6 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid,
 
 wxRadioBox::~wxRadioBox()
 {
-    CocoaRemoveFromParent();
 }
 
     // selection