// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-#include "wx/app.h"
-#include "wx/stattext.h"
+#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+ #include "wx/stattext.h"
+#endif //WX_PRECOMP
#include "wx/cocoa/autorelease.h"
wxStaticText::~wxStaticText()
{
- DisassociateNSTextField(m_cocoaNSView);
+ DisassociateNSTextField(GetNSTextField());
}
void wxStaticText::SetLabel(const wxString& label)