Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Beginners Column

Handling Preferences

Saving user preferences for your application

Issue: 3.1 (September/October 2004)
Author: Thomas J. Cunningham
Author Bio: Thomas is a self-taught hobbyist programmer who enjoys sharing the RB loving with others. He makes his home in the 50th state on the island of Maui.
Article Description: No description available.
Article Length (in bytes): 11,640
Starting Page Number: 30
RBD Number: 3113
Resource File(s):

Download Icon 3113.sit Updated: Wednesday, September 15, 2004 at 4:27 PM

Related Link(s): None
Known Limitations: None

Excerpt of article text...

Just about every application you will ever want to write in REALbasic will need some sort of a preference file. A good Mac program will allow the user to change certain items in the program. Mac users expect to be able to make the application look and feel the way they think is fun and intuitive. The apps we create should strive to offer nothing less. How should we handle our preferences? What should we allow our users to change?

Research

Every application you write will be a little different when it comes to answering these questions. To get a general feel for preferences and how they should look and feel, let's look at two of Apple's "iLife" applications. Let's start with iTunes..

The Preferences item is located in the iTunes menu. It is the third item listed, below the first separation line. Once open, the preference window has tool bar icons along the top portion of the window: General, Audio, Importing, and so on. As you click on each tool bar item, the window resizes to accommodate the checkboxes, listboxes, editfields and other assorted controls contained in the window. Notice that each item already has a "default" setting. In other words, the authors of the program have given you a behavior starting point. You can use the program right away without having to set anything up beforehand.

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