Your Preferences in Keys
Managing preferences as key/value pairs
Issue: 9.4 (May/June 2011)
Author: JC Cruz
Article Description: No description available.
Article Length (in bytes): 28,588
Starting Page Number: 49
RBD Number: 9408
9408.zip Updated: Monday, May 2, 2011 at 7:58 PM
Related Web Link(s):
Known Limitations: None
Excerpt of article text...
Rare is the software product that ships as is. In fact, most products permit users to adjust their behaviours, to make changes that bests suit each user's work habits.
So today we take a good look at how we manage a user's settings. We will study how to render these settings as key/value pairs, and how to store them to an external file. We will examine four types of file formats and the benefits they offer. We will even study the Dictionary class, which will serve as our data model.
When Users Customize
The modern software applications uses settings to prepare and direct some of its processes. These settings are held in a central buffer and are written to an external file when the product ends its session. Some settings are made available to the current session. Others are used to prepare the next session.
Most applications provide a dedicated window to view and alter its settings. This window, called the preferences window may be modal, requiring immediate attention. Or it may be non-modal, allowing users to continue interacting with the product. Some applications dispense with the window, preferring instead for users to alter the settings file directly.
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.