]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/bmpbuttn.mm
wxMenuBarManager::InstallMenuBarForWindow no longer looks for a menubar
[wxWidgets.git] / src / cocoa / bmpbuttn.mm
index 0388a1d9dbbd0b1b3301ef69d18b6ecb0950832c..61a0193676f0b93503b7086c9b51ee312a017fff 100644 (file)
@@ -55,7 +55,7 @@ bool wxBitmapButton::Create(wxWindow *parent, wxWindowID winid,
 
 wxBitmapButton::~wxBitmapButton()
 {
-    DisassociateNSButton(m_cocoaNSView);
+    DisassociateNSButton(GetNSButton());
 }
 
 void wxBitmapButton::Cocoa_wxNSButtonAction(void)