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

Reading custom rtf attributes


  • Subject: Reading custom rtf attributes
  • From: Paul FitzGerald <email@hidden>
  • Date: Sun, 1 Oct 2006 20:34:48 -0700

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.

BYW, If you really need to know why I want to do this see: http://captioning.robson.org/resources/rtfcre/ .

Any ideas, comments or references are appreciated,
Paul

_______________________________________________
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


  • Follow-Ups:
    • Re: Reading custom rtf attributes
      • From: Douglas Davidson <email@hidden>
    • Re: Reading custom rtf attributes
      • From: "Roger Persson" <email@hidden>
  • Prev by Date: Re: Distributed Objects, delegates, and retain cycles
  • Next by Date: Re: How do I know when my Core Data app is up and running?
  • Previous by thread: Re: PDFDocument and PDFPage
  • Next by thread: Re: Reading custom rtf attributes
  • Index(es):
    • Date
    • Thread