• 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 in NSTextFields?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hyperlinks in NSTextFields?


  • Subject: Re: Hyperlinks in NSTextFields?
  • From: Graham <email@hidden>
  • Date: Thu, 5 May 2005 14:45:47 -0400

Firstly I am using an NSTextField rather than an NSTextView, does that make a diiference?

Explanation: I have an NSTextField sublcass that is normally non-editable until it is clicked, at which point I setEditable(true) etc. In this state it is correctly displaying my hyperlink (part of the attributedstring), but hen it is in the non-editable state, it does not paint the hyperlink (blue, underlined).

Regards,

Graham

On May 5, 2005, at 1:16 PM, Douglas Davidson wrote:


On May 5, 2005, at 10:12 AM, Graham wrote:

I am working in Java, and converted this code, but it only paints the hyperlink when the textfield is editable and not when it isn't editable. Any ideas why this would be? I am not overriding the painting in my textfield.


I'm not sure exactly what you mean, but the automatic coloring and underlining of links is an NSTextView feature.  You can add color and underlining to your attributed string, and it will be displayed in your text field.

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: 
 >Hyperlinks in NSTextFields? (From: Jonathan del Strother <email@hidden>)
 >Re: Hyperlinks in NSTextFields? (From: Nicko van Someren <email@hidden>)
 >Re: Hyperlinks in NSTextFields? (From: Graham <email@hidden>)
 >Re: Hyperlinks in NSTextFields? (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Running AppleScript without Window Server context
  • Next by Date: Re: NSTextView - text wrapping
  • Previous by thread: Re: Hyperlinks in NSTextFields?
  • Next by thread: Core Data and WebObjects 5.2.3
  • Index(es):
    • Date
    • Thread