Reading custom rtf attributes
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