realbasic-nug
[Top] [All Lists]

Re: How to handle prefs with OO

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: How to handle prefs with OO
From: Matthias Buercher <reader at belle-nuit dot com>
Date: Thu, 31 Mar 2005 21:39:36 +0200
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <30245 dot 1112266813 at www35 dot gmx dot net>
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>

<Prev in Thread] Current Thread [Next in Thread>