// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-#include "wx/window.h"
-#include "wx/log.h"
+#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+ #include "wx/log.h"
+ #include "wx/window.h"
+#endif //WX_PRECOMP
#include "wx/cocoa/autorelease.h"
// Constructor
void wxWindowCocoa::Init()
{
- InitBase();
-
m_cocoaNSView = NULL;
m_cocoaHider = NULL;
m_cocoaScroller = NULL;
wxAutoNSAutoreleasePool pool;
DestroyChildren();
- if(m_parent)
- m_parent->RemoveChild(this);
-
CocoaRemoveFromParent();
delete m_cocoaHider;
delete m_cocoaScroller;