I am developing a Mac application, where i need to place About screen. In the About screen there are some text and url links(email support, websites) etc. to be provided. I don’t know how to implement the view which accepts text as well as url and email links. I tried NsTextView, but it doesn’t automatically taken care of this. I searched a lot, but couldn’t find any solution.
Could someone please help me to resolve this.
Thank you.
Cocoa’s built-in About panel will display a Credits file if it’s present in your app’s resources. This can be Credits.html, Credits.rtf, or Credits.rtfd. Either of those file formats support links. If there are links in the file, they will appear as such and be clickable. Does this not suffice?
Also,
NSTextViewshould handle links. It does not automatically interpret HTML strings, though. Instead, you set its content from anNSAttributedStringsome part of which has the attributeNSLinkAttributeNameapplied. You can set that up manually in code or you can construct anNSAttributedStringfrom HTML or RTF using one of the-initWithHTML:...,-initWithRTF:..., or-initWithRTFD:...methods.