Thank you both for this.  Much appreciated.

On 9 Jan 2009, at 03:15, Sean McBride wrote:

Matthew Morton (mattmor...@me.com) 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to