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 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) 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

Issue 4.1

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.