#import <AppKit/NSButton.h>
#include "wx/cocoa/string.h"
+#include "wx/cocoa/autorelease.h"
IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
// wxRadioButtonBase == wxControl
const wxValidator& validator,
const wxString& name)
{
+ wxAutoNSAutoreleasePool pool;
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
m_cocoaNSView = NULL;
wxRadioButton::~wxRadioButton()
{
- CocoaRemoveFromParent();
- SetNSButton(NULL);
+ DisassociateNSButton(m_cocoaNSView);
}
void wxRadioButton::SetValue(bool)