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