• 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: Reading custom rtf attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading custom rtf attributes


  • Subject: Re: Reading custom rtf attributes
  • From: "Roger Persson" <email@hidden>
  • Date: Mon, 2 Oct 2006 11:30:26 +0200

Exciting ideas.

Since you most likely will not find any way to "patch" the parser with
Cocoa, check-out the Microsoft sample code for RTF parsing.

http://msdn.microsoft.com/library/en-us/dnrtfspec/html/rtfspec_53.asp

2006/10/2, Paul FitzGerald <email@hidden>:
Looking for hooks into some Cocoa class where I can get custom
attributes from an rtf file as it's being read in.
My goal is to be able to get the data from a rtf/cre (rtf file with
court reporter extensions) file without writing my own parser.

I can read a rtf file into a NSText object but it ignores the
attributes it doesn't understand. In the case of these files they are
composed of around 30,000 attributes that are not understood and no
other text.

What I'm hoping for is some hook where I can get a hold of the ignored
attributes as the file is being read. I don't really care what kind of
object is doing the reading; it's all about the side effect. On the
other hand, if there is an interface to apples rtf parser (I've never
seen anything like this) that would be very cool.

I see a lot of posts from people on this list about creating custom
attributes but nothing on reading existing ones. I saw one reference
to using NSLayoutManager but I'm not seeing how that would work.
_______________________________________________
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


References: 
 >Reading custom rtf attributes (From: Paul FitzGerald <email@hidden>)

  • Prev by Date: Re: PDFDocument and PDFPage
  • Next by Date: Re: PDFDocument and PDFPage
  • Previous by thread: Reading custom rtf attributes
  • Next by thread: Re: Reading custom rtf attributes
  • Index(es):
    • Date
    • Thread