Search code examples
macoscocoatextmouseovernsbutton

Cocoa osx NSButton show text when mouse over


In my application for Mac I want to show some info text when the users moves the mouse pointer over a button. Something like this:

enter image description here

How can I achieve this correctly?

Thanks in advance.


Solution

  • This works for me in Xcode 6.2:

    In the Identity Inspector(the pane on the right hand side in the image below), in the Tool Tip section enter "Sad face":

    enter image description here