• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hyperlinks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hyperlinks


  • Subject: Re: Hyperlinks
  • From: Matthew Morton <email@hidden>
  • Date: Fri, 09 Jan 2009 08:46:17 +0000

Thank you both for this.  Much appreciated.


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

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>)
 >Re: Hyperlinks (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Recording video from a QCView to .mov
  • Next by Date: NSDistributedNotificationCenter and Launchd
  • Previous by thread: Re: Hyperlinks
  • Next by thread: PDF Problem
  • Index(es):
    • Date
    • Thread