NSTextField (Label) Attributed Text: Select

Posted by huntaub on Stack Overflow See other posts from Stack Overflow or by huntaub
Published on 2010-05-30T19:06:04Z Indexed on 2010/05/30 19:12 UTC
Read the original article Hit count: 244

I have a NSTextField Label that has attributed text in it. The color and size are different from the defaults. (The text is a bit larger and green) Now, I need to be able to select the text in the label so as the click the hyperlinks embedded in the attributed text. This works fine; however, when selecting the text the format of the text reverts back to the defaults (a smaller, black font).

Is there anyway to stop this behavior so that my styling is preserved when the user clicks (selects text) on a Label?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about nstextfield