• 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: Color of link in NSAttributedString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Color of link in NSAttributedString


  • Subject: Re: Color of link in NSAttributedString
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 22 Mar 2005 17:03:55 -0800

On 2005-03-22 16:14:37 -0800 Knud Möller <email@hidden> 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?

You need to look up -[NSTextView setLinkTextAttributes:].

Douglas Davidson

 _______________________________________________
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

References: 
 >Re: Color of link in NSAttributedString (From: Knud Möller <email@hidden>)

  • Prev by Date: Re: NSSlider and mouse events
  • Next by Date: authopen wrapper?
  • Previous by thread: Re: Color of link in NSAttributedString
  • Next by thread: Re: Color of link in NSAttributedString
  • Index(es):
    • Date
    • Thread