X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/524c47aa3adf2af11a3069fd5da035a604f08f66..08670ea85abf4b4946a9ce64971b591d7b1ee30b:/src/osx/carbon/control.cpp?ds=inline diff --git a/src/osx/carbon/control.cpp b/src/osx/carbon/control.cpp index dca650e0c8..dba7a99689 100644 --- a/src/osx/carbon/control.cpp +++ b/src/osx/carbon/control.cpp @@ -27,10 +27,6 @@ #include "wx/sizer.h" #endif // WX_PRECOMP -#include "wx/notebook.h" -#include "wx/tabctrl.h" -#include "wx/spinbutt.h" - #include "wx/osx/private.h" IMPLEMENT_ABSTRACT_CLASS(wxControl, wxWindow) @@ -67,11 +63,6 @@ bool wxControl::Create( wxWindow *parent, return rval; } -wxControl::~wxControl() -{ - m_isBeingDeleted = true; -} - bool wxControl::ProcessCommand( wxCommandEvent &event ) { // Tries: @@ -82,7 +73,7 @@ bool wxControl::ProcessCommand( wxCommandEvent &event ) void wxControl::OnKeyDown( wxKeyEvent &WXUNUSED(event) ) { - if ( m_peer == NULL || !m_peer->IsOk() ) + if ( GetPeer() == NULL || !GetPeer()->IsOk() ) return; #if wxOSX_USE_CARBON @@ -93,7 +84,7 @@ void wxControl::OnKeyDown( wxKeyEvent &WXUNUSED(event) ) GetEventParameter( (EventRef)wxTheApp->MacGetCurrentEvent(), kEventParamKeyMacCharCodes, typeChar, NULL, sizeof(char), NULL, &charCode ); GetEventParameter( (EventRef)wxTheApp->MacGetCurrentEvent(), kEventParamKeyModifiers, typeUInt32, NULL, sizeof(UInt32), NULL, &modifiers ); - m_peer->HandleKey( keyCode, charCode, modifiers ); + GetPeer()->HandleKey( keyCode, charCode, modifiers ); #else // TODO #endif