On 31 Mar 2011, at 06:36, Christopher Armstrong wrote: > On Wed, 30 Mar 2011 18:13 -0600, "Eric Wasylishen" > <[email protected]> wrote: >> Cool! Any help/ideas you can offer would be great. I have to admit I'm >> stuck right now. > > I noticed you said you were having problems with rich text. I was > thinking about this problem some more, and was wondering if you > considered modelling it as a ordered list of paragraphs instead of as a > blob of rich text with style attributes stored separately? From what I > can work out, to do any kind of diffing, we need very structured data. > Convential diffing for text files thats used e.g. in diff breaks up a > file into a list of lines, where a change in each line amounts to > replacing the whole line. I'm not sure if this works but it seems like a > possible approach.
This is the point of the EtoileText framework. It represents text in a tree structure, and has an façade class that lets you view it as an NSTextStorage subclass. David -- Sent from my Cray X1 _______________________________________________ Etoile-dev mailing list [email protected] https://mail.gna.org/listinfo/etoile-dev
