ToolTips for attachments

  • NSTextView has a delegate method:
    textView:willDisplayToolTip:forCharacterAtIndex:. But this gets never
    called.
    Is there some way to set a toolTip for a character?

    A related question: an NSTextAttachment is displayed with some image.
    Is it possible to set a toolTip string to this image?

    Gerriet.
  • On Oct 12, 2006, at 11:18 AM, Gerriet M. Denkmann wrote:

    > NSTextView has a delegate method:
    > textView:willDisplayToolTip:forCharacterAtIndex:. But this gets
    > never called.
    > Is there some way to set a toolTip for a character?

    This method allows you to control the tool tip displayed for a given
    portion of text, but only if the text already has a tool tip to begin
    with.  You must first add the tool tip attribute to the text of
    interest.  If you do that, you may find that you do not need the
    delegate method; it is only necessary if you want dynamic control at
    the time of display.

    Douglas Davidson
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today