Yellow highlight effect for text?

Discussion in 'Mac Programming' started by grimreaper1377, Apr 21, 2009.

  1. grimreaper1377 macrumors regular

    Joined:
    Oct 20, 2007
    #1
    How do I give my text a yellow highlight effect? Like the same one when I do :apple:+F in safari, etc.

    Thanks.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    If working in Cocoa, look at NSAttributedString and NSBackgroundColorAttributeName.
     
  3. JoshDC macrumors regular

    Joined:
    Apr 8, 2009
    #3
    If you're developing for 10.5, you can use the showFindIndicatorForRange: method of NSTextView.
     

Share This Page