[Alephmodular-devel] Plist based preferences
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2003-12-25 03:29:50
|
I've just committed on the prefs-development branch a new Reader/Writer pair for Plist based preferences. The Reader uses expat to handle the xml, and uses code derived from A1's XML_Configure by Loren to glue expat to C++. In order to compile this branch, one must install expat. Instructions for doing so are found in alephModular/documents/technical/README_MacOSX.txt. The preference changes are not yet landed in the main trunk just yet. There's some cleanup to be done in the form of removing the wad writer, and making sure I can round-trip between the preferences file and Apple's PList editor. (I think my base64 decoder needs work so that it properly handles/ignores whitespace in the encoded string.) Also, while the plist reader works, it is verrry simple minded. (It's a very simple state based machine. On one hand it's not going to handle all the complexities a plist file could have, on the other hand, AM is pretty simple minded in the use of the format. Using a subset of the features to begin with.) I'm not sure I'm happy with it beyond saying that it works in a well defined case. In other words, the reader is probably as quick and dirty as things come :/ At any rate, happy holidays to all, and I'll try to get this tidied up and merged back into the trunk soon. -Jeremy Parsons |