From: Vadim Zeitlin Date: Wed, 7 Dec 2011 23:55:38 +0000 (+0000) Subject: Set the tooltip for generic wxToolBar tools under wxOSX/Cocoa. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0e506592420f0f63bcfdd8bdf1fadf55ea4402e7 Set the tooltip for generic wxToolBar tools under wxOSX/Cocoa. When using non-native toolbar, set the tooltip for tools m_controlHandle. Closes #12362. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/toolbar.mm b/src/osx/cocoa/toolbar.mm index 41daeac737..dd7894fa60 100644 --- a/src/osx/cocoa/toolbar.mm +++ b/src/osx/cocoa/toolbar.mm @@ -192,6 +192,10 @@ public: if ( IsButton() ) [(NSButton*)m_controlHandle setTitle:l.AsNSString()]; + if ( m_controlHandle ) + { + [m_controlHandle setToolTip:sh.AsNSString()]; + } } void Action()