• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Links in RTF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Re: Links in RTF (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: MPEG-4 in NSMovieView - RED FLAG!
  • Next by Date: [OT] Open Documentation
  • Previous by thread: Re: Links in RTF
  • Next by thread: MPEG-4 in NSMovieView - RED FLAG!
  • Index(es):
    • Date
    • Thread