Re: Color of link in NSAttributedString
Re: Color of link in NSAttributedString
- Subject: Re: Color of link in NSAttributedString
- From: Knud Möller <email@hidden>
- Date: Wed, 23 Mar 2005 00:14:37 +0000
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?
Cheers,
Knud
Am 22.03.2005 um 22:41 schrieb John Stiles:
[self addAttributes:[NSDictionary
dictionaryWithObjectsAndKeys:[NSColor pickAColorHere],
NSForegroundColorAttributeName, NULL ]
range: something ];
On Mar 22, 2005, at 2:39 PM, Knud Möller wrote:
Hi,
is there a straightforward way of setting the color of a link in
NSAttributedString? I checked various places but couldn't find an
answer. Maybe I'm blind?
Cheers,
Knud
-------------------------------------------------
Knud Möller, MA
+353 - 91 - 512624
Digital Enterprise Research Institute
National University of Ireland, Galway
Institiúid Taighde na Fiontraíochta Digití
Ollscoil na hÉireann, Gaillimh
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
-------------------------------------------------
Knud Möller, MA
+353 - 91 - 512624
Digital Enterprise Research Institute
National University of Ireland, Galway
Institiúid Taighde na Fiontraíochta Digití
Ollscoil na hÉireann, Gaillimh
_______________________________________________
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