You are here

Apple Dashboard Widgets

After playing with Tiger for a couple of weeks now, I have to say I'm pretty impressed with its slickness. For an interview I had, I decided it'd be fun to write a Dashboard Widget. Since it just built on the JavaScript I already knew, it actually wasn't too hard. The programming guide helped quite a bit, and just knowing that you need to debug the widget inside of Safari, and not inside of Dashboard was the key.

I'm planning on posting the results of my widget build taken step by step. It's just a basic search widget using the Yahoo Search API but I did it in 3 parts. The hardest part was actually getting the scrollbar to work. Apparently as part of the design specs for widgets, Apple doesn't want you to use the Aqua graphics (oh no, that'd be too easy!) so you need to custom design elements like scrollbars. Fortunately, they have some sample code which ends up being pretty plug and play once you follow the directions enclosed in the HTML file.