display description when mouse goes over button

Discussion in 'Mac Programming' started by abcdefg12345, Feb 11, 2015.

  1. abcdefg12345 macrumors regular

    abcdefg12345

    Joined:
    Jul 10, 2013
    #1
    Hello

    I'm trying to display a description when the cursor goes over a button like the one that shows in apple's calculator app, anyone knows how to do that.

    Screen Shot 2015-02-12 at 2.27.59 am.png

    thanks
     
  2. hokan macrumors member

    Joined:
    Mar 18, 2014
    Location:
    Sweden
    #2
    The image appears to show a tool tip.
    You can add a tool tip to any view (class that inherits from NSView) by calling -setToolTip:. You could also set the tool tip directly in the xib/nib file.
     
  3. abcdefg12345 thread starter macrumors regular

    abcdefg12345

    Joined:
    Jul 10, 2013
    #3
    thats exactly what i was looking for, thanks
     

Share This Page