i have a module preferences. actually i have discoverd that a module
is a handy workaround to get a static class instance which is
transportable between projects (before, i did all following in the
app class).
the module has a a dictionary and and open and a close method. the
open method opens its dictionary from an XML file using xmldict, the
close method saves it.
each window has its own dictionary for the preferences and just gets
the dictionary from preferences dictionary on opening and adds it to
the preferences dictionary at close. this is good with XMLdict, that
it can also save dictionaries containing dictionaries. the same for
the app. the first line in app.open is preferences.open and the last
line in app.close is preferences.close.
matthias
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|