Alan Colburn wrote: > I'm still trying to keep my UI and domain objects separate...
It sounds like you have two types of data here. First, the basic data that you want to represent in an outline. Second, the data that encompasses all the details related to the outline structure and formatting (the rich text stuff). The basic data (the raw strings) it sounds like you can handle. The part of the data that relates to displaying the outline and the style data that the rich text adds seems to be where you have a conceptual problem. is that stuff GUI-only or is it part of the basic data? Does the specific outline that the user puts the basic data into become part of the basic data when they say they want to "save"? Or, is the formatting somehow separate and only part of the GUI interface? It is a gray area and the best decision may come from looking at the semantics of the data, itself, so it cannot be made in the abstract. In the end only you can decide. And you just have to make a decision. If you decide the outlining and formatting is NOT part of the basic data, you then need to deal with it separately. How are you going to save the formatting separate from the raw strings? If you make the formatting part of the basic data you need to expand your storage scheme to include formatting details that may get in the way of the other processing of that data. Personally, I would store it all together, expanding the storage model you are using to include all the formatting details, but provide an easy way to extract just the raw strings for use by the non-gui parts of your processing. _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

