In the object destructor, Disassociate the object from its Cocoa counterpart
but leave m_cocoaNSView intact so base class destructors can use it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -52,8 +52,7 @@ bool wxButton::Create(wxWindow *parent, wxWindowID winid,
|
||||
|
||||
wxButton::~wxButton()
|
||||
{
|
||||
CocoaRemoveFromParent();
|
||||
SetNSButton(NULL);
|
||||
DisassociateNSButton(m_cocoaNSView);
|
||||
}
|
||||
|
||||
void wxButton::Cocoa_wxNSButtonAction(void)
|
||||
|
||||
Reference in New Issue
Block a user