]> 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 00a22bc123ba94846934e6e60ebb6dd79740e91a..7e6e457e7ed1373c842dc5f011a0bb27c981146f 100644 (file)
@@ -9,8 +9,11 @@
 // Licence:    wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
-#include "wx/app.h"
-#include "wx/statbox.h"
+#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+    #include "wx/app.h"
+    #include "wx/statbox.h"
+#endif //WX_PRECOMP
 
 #include "wx/cocoa/autorelease.h"
 
@@ -44,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