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:
David Elliott
2003-07-12 00:52:50 +00:00
parent 4cb88a72da
commit 570aaadf1f
8 changed files with 8 additions and 16 deletions

View File

@@ -39,8 +39,7 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID winid,
wxStaticBox::~wxStaticBox()
{
CocoaRemoveFromParent();
SetNSBox(NULL);
DisassociateNSBox(m_cocoaNSView);
}
void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const