]> git.saurik.com Git - wxWidgets.git/commitdiff
Set the tooltip for generic wxToolBar tools under wxOSX/Cocoa.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 7 Dec 2011 23:55:38 +0000 (23:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 7 Dec 2011 23:55:38 +0000 (23:55 +0000)
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

src/osx/cocoa/toolbar.mm

index 41daeac737f5bc74971966136d2041fe287da297..dd7894fa6076c7f28ca1d0599d0636013531c558 100644 (file)
@@ -192,6 +192,10 @@ public:
         if ( IsButton() )
             [(NSButton*)m_controlHandle setTitle:l.AsNSString()];
 
         if ( IsButton() )
             [(NSButton*)m_controlHandle setTitle:l.AsNSString()];
 
+        if ( m_controlHandle )
+        {
+            [m_controlHandle setToolTip:sh.AsNSString()];
+        }
     }
 
     void Action()
     }
 
     void Action()