X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc11cc69186f64a7729cd3b5a892dd487b9f6f0c..faa60a4f0b456f6eed431c4dd224c1ec04252d99:/src/cocoa/radiobox.mm?ds=sidebyside diff --git a/src/cocoa/radiobox.mm b/src/cocoa/radiobox.mm index a6e87e742f..8cf200fb4d 100644 --- a/src/cocoa/radiobox.mm +++ b/src/cocoa/radiobox.mm @@ -20,7 +20,7 @@ #include "wx/arrstr.h" #endif //WX_PRECOMP -#import +#include "wx/cocoa/objc/NSView.h" IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl) BEGIN_EVENT_TABLE(wxRadioBox, wxControl) @@ -53,7 +53,7 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid, { if(!CreateControl(parent,winid,pos,size,style,validator,name)) return false; - SetNSView([[NSView alloc] initWithFrame: MakeDefaultNSRect(size)]); + SetNSView([[WX_GET_OBJC_CLASS(WXNSView) alloc] initWithFrame: MakeDefaultNSRect(size)]); [m_cocoaNSView release]; if(m_parent) m_parent->CocoaAddChild(this);