- Messages
- 204
- Country
That is one way of handling it, but I would have used hyphen'd directories instead of too many nested levels, maybe 2 levels deep max. Global\Scenery-World, Local\Scenery-SimObjects, etc...
For instance, when I am building a treeview in an application, I've seen people use XML and the nests get to 100's of levels deep, when you can just use a flat text file and assign node numbers like 1-2-5-6, then when you want to move the node you can simple parse the hypen, rather than reading a file that becomes 500x unnecessarily large. Not that it's wrong to use XML for a treeview (its not), but if you are trying to keep something as optimized as possible, it's a different design.
I appreciate the input though...
For instance, when I am building a treeview in an application, I've seen people use XML and the nests get to 100's of levels deep, when you can just use a flat text file and assign node numbers like 1-2-5-6, then when you want to move the node you can simple parse the hypen, rather than reading a file that becomes 500x unnecessarily large. Not that it's wrong to use XML for a treeview (its not), but if you are trying to keep something as optimized as possible, it's a different design.
I appreciate the input though...
Last edited: