realbasic-nug
[Top] [All Lists]

Re: How to handle prefs with OO

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: How to handle prefs with OO
From: "Craig A. Finseth" <fin at finseth dot com>
Date: Thu, 31 Mar 2005 18:47:32 -0600 (CST)
Cc: realbasic-nug at lists dot realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BE71F667 dot C873%larsjensen at rcn dot com>
        ...
   It's _a_ way (and a good one if you like XML) -- another is just a bunch of
   name/value pairs as Joe suggested, which has the advantage of greater
   readability in a text editor, and the disadvantage of requiring more work
   for hierarchical preferences, or ones whose values can contain field &
   record delimiters.
        ...

I used a set of name/type/value tuples.  If the value would cause
syntax problems (really, anything other than the base 95 ASCII
printing characters), I store it as base 64 encoded (and mark it that
way so I can decode on reading in).

I also store complete encoding information with all strings (:-).

Craig

_______________________________________________
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>