X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac23569987239fa21c78e2fa11224760dd181adf..6f8dd114f41f0cfdf3670267e88f7dea1da18f5a:/src/osx/carbon/window.cpp?ds=inline diff --git a/src/osx/carbon/window.cpp b/src/osx/carbon/window.cpp index 1c93cfa2ca..39ed9fe0bf 100644 --- a/src/osx/carbon/window.cpp +++ b/src/osx/carbon/window.cpp @@ -288,7 +288,7 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl #endif wxLogTrace(_T("Focus"), _T("focus lost(%p)"), wx_static_cast(void*, thisWindow)); - + // remove this as soon as posting the synthesized event works properly static bool inKillFocusEvent = false ; @@ -849,7 +849,7 @@ void wxMacControl::RemoveFromParent() void wxMacControl::Embed( wxWidgetImpl *parent ) { - HIViewAddSubview(parent->GetWXWidget(), m_controlRef); + HIViewAddSubview((ControlRef)parent->GetWXWidget(), m_controlRef); } void wxMacControl::SetNeedsDisplay( const wxRect* rect )