]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/statbox.mm
Fixed Mac CodeWarrior compilation (there's no <sys/types.h>).
[wxWidgets.git] / src / cocoa / statbox.mm
index a54fc3fb4faa055ba5dc811ac4f97afd629cfe30..7e6e457e7ed1373c842dc5f011a0bb27c981146f 100644 (file)
@@ -47,7 +47,7 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID winid,
 
 wxStaticBox::~wxStaticBox()
 {
-    DisassociateNSBox(m_cocoaNSView);
+    DisassociateNSBox(GetNSBox());
 }
 
 void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const