// 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"
+#endif //WX_PRECOMP
+
+#import <AppKit/NSView.h>
IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
BEGIN_EVENT_TABLE(wxRadioBox, wxControl)
{
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
- m_cocoaNSView = NULL;
+ SetNSView([[NSView alloc] initWithFrame: MakeDefaultNSRect(size)]);
+ [m_cocoaNSView release];
if(m_parent)
m_parent->CocoaAddChild(this);
+ SetInitialFrameRect(pos,size);
+
return true;
}
wxRadioBox::~wxRadioBox()
{
- CocoaRemoveFromParent();
}
// selection