Re: Color of link in NSAttributedString
Re: Color of link in NSAttributedString
- Subject: Re: Color of link in NSAttributedString
- From: Roarke Lynch <email@hidden>
- Date: Tue, 22 Mar 2005 21:03:56 -0500
On Mar 22, 2005, at 19:14, Knud Möller 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?
I assume that you are displaying this text in an NSTextView, if so take
a look at linkTextAttributes. I have a feeling that the textView is
overriding your string's attributes with the values from this
dictionary in order as enable a uniform method of altering link
attributes.
Roarke Lynch
-------------------------------
email@hidden
_______________________________________________
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