]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/bmpbuttn.mm
wxCocoa: Added gauge.(mm|h)
[wxWidgets.git] / src / cocoa / bmpbuttn.mm
index 94b40d916054c30835e3de3b180e1fe61e752ff3..9245d118c00b968a55c1bf8281fbc92a3b0e26de 100644 (file)
@@ -52,8 +52,7 @@ bool wxBitmapButton::Create(wxWindow *parent, wxWindowID winid,
 
 wxBitmapButton::~wxBitmapButton()
 {
 
 wxBitmapButton::~wxBitmapButton()
 {
-    CocoaRemoveFromParent();
-    SetNSButton(NULL);
+    DisassociateNSButton(m_cocoaNSView);
 }
 
 void wxBitmapButton::Cocoa_wxNSButtonAction(void)
 }
 
 void wxBitmapButton::Cocoa_wxNSButtonAction(void)