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










