Re: Color of link in NSAttributedString
Re: Color of link in NSAttributedString
- Subject: Re: Color of link in NSAttributedString
- From: Douglas Davidson <email@hidden>
- Date: Tue, 22 Mar 2005 17:03:55 -0800
On 2005-03-22 16:14:37 -0800 Knud Möller <email@hidden> wrote:
> Thanks, but I don't think its quite that easy. If I do:
>
> [self addAttribute: NSLinkAttributeName
> value: @"lalala"
> range: range];
> [self addAttribute: NSForegroundColorAttributeName
> value: [NSColor redColor]
> range: range];
>
> the link will be rendered in linkish blue, not red. Maybe I'm still
> blind?
You need to look up -[NSTextView setLinkTextAttributes:].
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden