I'm following an example from Apple to create a hyperlink in a NSTextField (via an attributed string), and though the hyperlink itself works, there is an issue with the cursor. Namely, when you hover over the hyperlink, it displays the normal I-beam cursor until you click it. After clicked once, it displays the proper pointing-hand cursor.
I've searched for a while and there doesn't seem to be an easy answer to this issue, which is confusing because hyperlinks seem as if they would be pretty common. People have suggested using hyperlinked NSButtons (how do you get underline on hover, then?) and NSTextViews previously, but that seems sort of hack-y. What's the proper way to do hyperlinks in OSX programming?
Note: I stumbled across this article which shows a way of doing this with textviews and "category". Is this the proper way to do things? I want to be writing maintainable and clean code.
Thank you!