Why do hyperlinks sometimes not show in an NSTextField with an NSAttributedString?
The text I use in an NSTextField is loaded from a file as follows. NSString *path = [[NSBundle mainBundle] pathForResource:@"Credits" ofType:@"rtf"]; NSAttributedString *as = [[NSAttributedString alloc] initWithPath:path documentAttributes:NULL]; [creditsLabel setAttributedStringValue:as]; [creditsLabel becomeFirstResponder]; The hyperlinks in the window don't render in blue underline unless I first click somewhere on the NSTextField, as per the two screenshots. How can I make these hyperlinks always look like hyperlinks? Here's the RTF: {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 {