Re: Links in RTF
Re: Links in RTF
- Subject: Re: Links in RTF
- From: Ali Ozer <email@hidden>
- Date: Fri, 26 Jul 2002 13:01:49 -0700
I'd like to add clickable links to RTF (and RTFD) displayed in an
NSTextView. Ali Ozer seemed to imply this was both impossible and
possible in this archived message:
http://cocoa.mamasam.com/COCOADEV/2002/01/2/23082.php
In my case I populate the NSTextView's textStorage with either
[[NSAttributedString alloc] initWithRTFDFileWrapper:] or
[[NSAttributedString alloc] initWithRTF:], so I can play any games
required with the attributed string at read time.
Before I get bloody attempting this, I was wondering if anyone had
encouraging ideas or success stories. Thanks!
I believe what Ali said is that we do not read or store links in RTF,
but that you can add link attributes programmatically to your text
storage whenever you like.
And one more thing I tried to say was that you can write the link in
such a way that you can recognize it on the way back and properly
reattach the link attribute. Clearly one way to do it is to recognize
arbitrary URLs, like Mail apps and such do; another is to write a
special attachment...
Ali
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.