Previously, to save the settings of some applications, I used:
- A
TSettings = class(TPersistent)
for the container - Each data to serialize in a published property
- List of object were TCollection and TCollectionItem types
The TJvAppXMLFileStorage component to save everything with the single line :
JvAppXMLFileStorage.WritePersistent(...);
BUT now, I'm using TObjectList as properties in the TSettings class.
So I drop the TCollection/TCollectionItem in favor of Generics ...
When serializing it, there is no list of items ... I think it's because TObjectList is not from TPersistent.
How can I serialize my TObjectList<> with TJvAppXMLFileStorage ?
JvAppXMLFileStorage1.WritePersistent('', ObjectList.Items[i]);
– Eriha