Re: Hyperlinks
Re: Hyperlinks
- Subject: Re: Hyperlinks
- From: "Sean McBride" <email@hidden>
- Date: Thu, 8 Jan 2009 22:15:57 -0500
Matthew Morton (email@hidden) on 2009-01-08 7:02 AM said:
>have bound the value of the NSTextField to an NSAttributedString in a
>custom class and set attributes for NSLinkAtributeName,
>NSForegroundColorAtributeName, and NSUnderlineStyleAttributeName.
If you're interested, you can get the correct 'blue' colour for the
hyperlink like this:
ICAttr attr;
RGBColor rgbColour;
size = sizeof(RGBColor);
err = ICGetPref (icInstance, kICWebUnreadColor,
&attr, &rgbColour, &size);
(Old API, but still the best way AFAIK. Even works in 64bit.)
Sean
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Hyperlinks (From: Matthew Morton <email@hidden>) |