/////////////////////////////////////////////////////////////////////////////
-// 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
/////////////////////////////////////////////////////////////////////////////
wxToolTip::wxToolTip( const wxString &tip )
{
m_text = tip;
- m_window = (wxWindow*) NULL;
+ m_window = NULL;
}
wxToolTip::~wxToolTip()
void wxToolTip::SetTip( const wxString &tip )
{
m_text = tip;
+ if (m_window)
+ m_window->SetToolTip(this);
}
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) )
{
}
{
}
-void wxToolTip::RelayEvent( wxWindow *win , wxMouseEvent &event )
+void wxToolTip::RelayEvent( wxWindow *WXUNUSED(win) , wxMouseEvent &WXUNUSED(event) )
{
}
}
// --- mac specific
-void wxToolTip::NotifyWindowDelete( WXHWND win )
+void wxToolTip::NotifyWindowDelete( WXHWND WXUNUSED(win) )
{
}