Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 14 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

PDF:

Feature

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
Resource File(s):

Download Icon 9408.zip Updated: Monday, May 2, 2011 at 7:58 PM

Related Web Link(s):

place-download-url-here
http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/PropertyLists/PropertyLists.pdf
http://docs.realsoftware.com/index.php/Dictionary
http://en.wikipedia.org/wiki/Associative_array
http://en.wikipedia.org/wiki/INI_file
http://en.wikipedia.org/wiki/Property_list
http://en.wikipedia.org/wiki/YAML

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.


 


|

 


Weblog Commenting and Trackback by HaloScan.com