Article Preview
Buy Now
COLUMN
Throw it on the Dash, Part II
Write your own Dashboard Widget
Issue: 4.1 (September/October 2005)
Author: Toby Rush
Author Bio: Toby Rush is a music instructor, consultant, freelance programmer, web designer, husband and Dad in Greeley, Colorado.
Article Description: No description available.
Article Length (in bytes): 10,847
Starting Page Number: 42
Article Number: 4120
Related Web Link(s):
http://www.apple.com/DTDs/PropertyList-1.0.dtd
Excerpt of article text...
In the last issue, we went over Apple's guidelines for widgets: simple utilities that exist on the Dashboard in Mac OS X 10.4 Tiger. This time, we'll actually go through the process of building a widget.
Designing the Graphics
To start with a simple exercise, let's design a widget that allows the user to roll dice. Keeping in mind that the user can have as many instances of our widget as he or she wants (just as with any widget), we'll design it to roll a single six-sided die.
The place to start is in a graphics program like Adobe Photoshop. Any graphics program will work, so long as it allows you to save graphics in the PNG format which widgets use. It's generally a good idea to design against a transparent background, so you can create the rounded corners that fit nicely with Apple's built-in widgets.
In the graphics program, we'll want to create graphics to represent all the possibilities in our widget:
- the background of our widget
...End of Excerpt. Please purchase the magazine to read the full article.