• 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
Displaying linked rtf in an NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Scheduling tasks
  • Next by Date: CoreData & Spotlight
  • Previous by thread: NSTableView headers in tabless NSTabView
  • Next by thread: CoreData & Spotlight
  • Index(es):
    • Date
    • Thread