]> git.saurik.com Git - wxWidgets.git/commitdiff
In the object destructor, leave m_cocoaNSView intact for base class destructors
authorDavid Elliott <dfe@tgwbd.org>
Sat, 12 Jul 2003 01:04:47 +0000 (01:04 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sat, 12 Jul 2003 01:04:47 +0000 (01:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/radiobox.mm
src/cocoa/slider.mm
src/cocoa/statbmp.mm
src/cocoa/statline2.mm

index 397829a6fd434f825f38b90834ca4e6eea67e909..db1e609dcaa7025dd045db8a188b151e20ff3c3f 100644 (file)
@@ -39,8 +39,6 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid,
 
 wxRadioBox::~wxRadioBox()
 {
-    CocoaRemoveFromParent();
-    SetNSView(NULL);
 }
 
     // selection
index 207f9a8c9938d39e9e7174fc91fff4218fa4013a..7e319e48446b3da55c54278e32e1579ba1770bba 100644 (file)
@@ -38,8 +38,6 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID winid,
 
 wxSlider::~wxSlider()
 {
-    CocoaRemoveFromParent();
-    SetNSView(NULL);
 }
 
 #endif // wxUSE_SLIDER
index f94ea97da2e107a4db7233d869098f49241d374b..832ce11acd346e3777f502cd15ae2bfc64451ae9 100644 (file)
@@ -38,8 +38,6 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID winid,
 
 wxStaticBitmap::~wxStaticBitmap()
 {
-    CocoaRemoveFromParent();
-    SetNSView(NULL);
 }
 
 void wxStaticBitmap::SetIcon(const wxIcon& icon)
index 8ad30c325092a188c8e0cea93cbc5a2d73f37bf3..6afc341f54c869d2d313a19da57ee7befa736f06 100644 (file)
@@ -36,7 +36,5 @@ bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid,
 
 wxStaticLine::~wxStaticLine()
 {
-    CocoaRemoveFromParent();
-    SetNSView(NULL);
 }