I have an NSTextField that contains an NSAttributedString which itself contains a clickable link.
I’ve change the colour of the link for my own styling, however when I click on it it becomes blue and underlined. How can I stop this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Seems that I’m not the only one with this problem, and there’s a handy class to solve it:
https://github.com/laevandus/NSTextFieldHyperlinks
https://github.com/catlan/DSClickableURLTextField