NSTextField labels and URLs

  • Hi,

    I'm almost positive I've seen this asked here a few weeks back, but
    search turned up nothing so here goes...

    I have About panel with copyright label (NSTextField) that have URL in
    it. Label is set to allow rich text and be selectable, copyright
    string is loaded from Credits.rtf and assigned to label with
    setAttributedStringValue. The problem is that when About is shown, I
    have to click on copyright to make URL underlined and hover cursor
    changed to pointingHandCursor.

    Is there anything special that needs to be done to get NSTextField to
    display links underlined ?

    Thanks,
    - Dmitri
  • On Jul 14, 2008, at 4:01 PM, Dmitri Goutnik wrote:

    > Hi,
    >
    > I'm almost positive I've seen this asked here a few weeks back, but
    > search turned up nothing so here goes...
    >
    > I have About panel with copyright label (NSTextField) that have URL
    > in it. Label is set to allow rich text and be selectable, copyright
    > string is loaded from Credits.rtf and assigned to label with
    > setAttributedStringValue. The problem is that when About is shown, I
    > have to click on copyright to make URL underlined and hover cursor
    > changed to pointingHandCursor.
    >
    > Is there anything special that needs to be done to get NSTextField
    > to display links underlined ?

    What about ...

      http://www.cocoabuilder.com/archive/message/cocoa/2006/8/25/170133

    S.