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