summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bb69632)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56886
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// contains the tag for the content (is different for password and non-password controls)
OSType m_valueTag ;
// contains the tag for the content (is different for password and non-password controls)
OSType m_valueTag ;
+ WXEVENTHANDLERREF m_macTextCtrlEventHandler ;
public :
ControlEditTextSelectionRec m_selection ;
};
public :
ControlEditTextSelectionRec m_selection ;
};
const wxString& name = wxFrameNameStr);
virtual ~wxTopLevelWindowMac();
const wxString& name = wxFrameNameStr);
virtual ~wxTopLevelWindowMac();
+
+ virtual bool Destroy();
virtual wxPoint GetClientAreaOrigin() const;
virtual wxPoint GetClientAreaOrigin() const;
#include "wx/osx/carbon/uma.h"
#endif
#include "wx/osx/carbon/uma.h"
#endif
wxWebKitCtrl::~wxWebKitCtrl()
{
wxWebKitCtrl::~wxWebKitCtrl()
{
+ MyFrameLoadMonitor* myFrameLoadMonitor = [m_webView frameLoadDelegate];
+ MyPolicyDelegate* myPolicyDelegate = [m_webView policyDelegate];
+ [m_webView setFrameLoadDelegate: nil];
+ [m_webView setPolicyDelegate: nil];
+
+ if (myFrameLoadMonitor)
+ [myFrameLoadMonitor release];
+
+ if (myPolicyDelegate)
+ [myPolicyDelegate release];
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
{
::InstallControlEventHandler( m_controlRef , GetwxMacUnicodeTextControlEventHandlerUPP(),
GetEventTypeCount(unicodeTextControlEventList), unicodeTextControlEventList, this,
{
::InstallControlEventHandler( m_controlRef , GetwxMacUnicodeTextControlEventHandlerUPP(),
GetEventTypeCount(unicodeTextControlEventList), unicodeTextControlEventList, this,
+ (EventHandlerRef*) &m_macTextCtrlEventHandler);
}
wxMacUnicodeTextControl::~wxMacUnicodeTextControl()
{
}
wxMacUnicodeTextControl::~wxMacUnicodeTextControl()
{
+ ::RemoveEventHandler((EventHandlerRef) m_macTextCtrlEventHandler);
}
void wxMacUnicodeTextControl::VisibilityChanged(bool shown)
}
void wxMacUnicodeTextControl::VisibilityChanged(bool shown)
+bool wxTopLevelWindowMac::Destroy()
+{
+ // NB: this will get called during destruction if we don't do it now,
+ // and may fire a kill focus event on a control being destroyed
+#if wxOSX_USE_CARBON
+ if (m_nowpeer->GetWXWindow())
+ ClearKeyboardFocus( (WindowRef)m_nowpeer->GetWXWindow() );
+#endif
+ return wxTopLevelWindowBase::Destroy();
+}
+
// ----------------------------------------------------------------------------
// wxTopLevelWindowMac maximize/minimize
// ----------------------------------------------------------------------------
// wxTopLevelWindowMac maximize/minimize