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:

Interface Design

Throw it on the Dash, Part II

Write your own Dashboard Widget

Issue: 4.1 (September/October 2005)
Author: Toby Rush
Article Description: No description available.
Article Length (in bytes): 9,139
Starting Page Number: 42
RBD Number: 4120
Resource File(s):

Download Icon 4120.sit Updated: Monday, September 19, 2005 at 12:22 PM

Related Link(s): None
Known Limitations: None

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

the initial appearance of our widget (before any processing is done)

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