#include "wx/log.h"
#endif
+#include "wx/cocoa/autorelease.h"
+
#import <AppKit/NSButton.h>
#import <Foundation/NSString.h>
const wxSize& size, long style,
const wxValidator& validator, const wxString& name)
{
+ wxAutoNSAutoreleasePool pool;
wxLogDebug("Creating control with id=%d",winid);
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
wxBitmapButton::~wxBitmapButton()
{
- CocoaRemoveFromParent();
- SetNSButton(NULL);
+ DisassociateNSButton(m_cocoaNSView);
}
void wxBitmapButton::Cocoa_wxNSButtonAction(void)