NSLinkAttributeName: can I control the visual presentation?

  • I have a mutable attributed string that is displayed in an NSTextView.
    For a certain range, I set several attributes, including
    NSLinkAttributeName. However, the presentation shows as blue
    underlined text even though I have set other attributes for the font
    color and also have set the underline style to none. Is there
    something else I must do to control the visual presentation?  Or am I
    going to need to use tracking areas and manage this with dynamic
    changes?
  • On Jul 4, 2009, at 9:18 AM, Stuart Malin wrote:

    > I have a mutable attributed string that is displayed in an
    > NSTextView. For a certain range, I set several attributes, including
    > NSLinkAttributeName. However, the presentation shows as blue
    > underlined text even though I have set other attributes for the font
    > color and also have set the underline style to none. Is there
    > something else I must do to control the visual presentation?

    On NSTextView:

    - (void)setLinkTextAttributes:(NSDictionary *)attributeDictionary;
    - (NSDictionary *)linkTextAttributes;

    Jim