X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/78d990152a01bd0a21a0425ab661cb43040b4d98..7c60222510bc5e197b12f153c4bf05db66cb0f4a:/src/osx/cocoa/tooltip.mm?ds=sidebyside diff --git a/src/osx/cocoa/tooltip.mm b/src/osx/cocoa/tooltip.mm index 4cb9e517c5..11c44b49b4 100644 --- a/src/osx/cocoa/tooltip.mm +++ b/src/osx/cocoa/tooltip.mm @@ -1,8 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/osx/carbon/tooltip.cpp +// Name: src/osx/cocoa/tooltip.mm // Purpose: wxToolTip implementation // Author: Stefan Csomor -// Id: $Id: tooltip.cpp 55419 2008-09-02 16:53:23Z SC $ +// Id: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject) wxToolTip::wxToolTip( const wxString &tip ) { m_text = tip; - m_window = (wxWindow*) NULL; + m_window = NULL; } wxToolTip::~wxToolTip() @@ -47,6 +47,8 @@ wxToolTip::~wxToolTip() void wxToolTip::SetTip( const wxString &tip ) { m_text = tip; + if (m_window) + m_window->SetToolTip(this); } void wxToolTip::SetWindow( wxWindow *win ) @@ -54,11 +56,11 @@ void wxToolTip::SetWindow( wxWindow *win ) m_window = win ; } -void wxToolTip::Enable( bool flag ) +void wxToolTip::Enable( bool WXUNUSED(flag) ) { } -void wxToolTip::SetDelay( long msecs ) +void wxToolTip::SetDelay( long WXUNUSED(msecs) ) { } @@ -70,7 +72,7 @@ void wxToolTip::SetReshow( long WXUNUSED(msecs) ) { } -void wxToolTip::RelayEvent( wxWindow *win , wxMouseEvent &event ) +void wxToolTip::RelayEvent( wxWindow *WXUNUSED(win) , wxMouseEvent &WXUNUSED(event) ) { } @@ -79,7 +81,7 @@ void wxToolTip::RemoveToolTips() } // --- mac specific -void wxToolTip::NotifyWindowDelete( WXHWND win ) +void wxToolTip::NotifyWindowDelete( WXHWND WXUNUSED(win) ) { }