Hi,
I have a chrome application where data can be organized in a hierarchical manner. I want to display those data as a tree in a panel and maintain synchronization with between the tree and my data.
A simple way for doing this would be to parse the whole data, build the RDF structure corresponding to my data, pass the RDF to a templated xul tree. When data change, I could all or part of the RDF to reflect the changes.
Yeah, that's pretty complicated if you're not *storing* the information in an RDF format.
I would look at writing a custom datasource that "mirrors" your data into RDF. Implementing the methods of nsIRDFDataSource isn't that hard if you have a decent hierarchical structure that you can map onto a fake urn: schema.
Then you can fire rdf observer notifications when you data changes, and the tree should update automatically.
--BDS _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
