Displaying linked rtf in an NSTextField
Displaying linked rtf in an NSTextField
- Subject: Displaying linked rtf in an NSTextField
- From: "Theodore H. Smith" <email@hidden>
- Date: Fri, 15 Jul 2005 10:12:05 +0100
I have some RTF which I am loading from a file, into an NSTextField.
The styles are transfered, but the HTML links are not.
I read http://www.cocoadev.com/index.pl?ClickableUrlInTextView but
that one is doing HTML parsing.
Is there a simpler way to do this? SOme kind of inbuilt Cocoa feature?
If not, I suppose I could loop through my NSAttributedString that I
get from my RTF file, and call:
[NSTextStorage addAttributes:linkAttributes range:foundRange];
using each attribute got from the NSAttributed string, then?
Thanks for any answers, anyone!
--
http://elfdata.com/plugin/ Industrial strength string processing,
made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden