Cocoa osx NSButton show text when mouse over

user3065901 picture user3065901 · Apr 29, 2015 · Viewed 8.1k times · Source

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.

Answer

7stud picture 7stud · Apr 29, 2015

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