Embedding hyperlinks in NSTextField

Follow-up post to embedding hyperlinks in textview I wrote a while back. HyperlinkTextField is a basic NSTextField subclass which uses NSTextView internally for calculating frames for hyperlinks in the text and implements showing pointing hand cursor and handling opening urls. It is meant to be used where-ever it is needed to show non-selectable text containing clickable hyperlinks. The whole source code is available at github under MIT license. This project is a good starting point for implementing more complex text fields showing hyperlinks.

Download

NSTextFieldHyperlinks (github)