Dashboard Development, Part I
April 30th, 2005 by Brian
Now that Tiger is officially out, documentation on how to develop Dashboard widgets is much easier to come by, so I’m working on my custom weather widget. I finally figured out how to work with the canvas control, so the graph and the compass should be doable now.
I don’t like JavaScript. Perhaps that’s just because most of the stuff one gets when googling for JavaScript are tutorials for people who don’t know anything about web development to copy and paste into their GeoCities page. After finding Sun’s official documentation, it’s been going a little smoother. I still don’t like the language… it’s way too loosely-typed, doesn’t really differentiate between objects and primitives, and is similar enough to Java while being sufficiently different to get confusing.
The screenshot at the left is the exact opposite of the one I posted last week. It has no fancy interface, but the data it displays are live (or they were when I took the screenshot…) Now I just need to merge the two together, and figure out some reasonable way to parse through the whole file to make the graph (that means I need to tackle arrays…)
I just need to get over my aversion to JavaScript, which I’m sure has come from years of seeing it used primarily for really annoying things.
Oh, and an administrative note: I’ve changed the default display from three articles to six, since I’ve been posting more frequently lately and stuff that I’d still consider recent is getting pushed off of the end.
At 6:00 pm tonight, I headed down to the Apple Store for the Tiger release party. The line was longer than I’d expected; the wait was about an hour before I actually got into the store. I met a bunch of other Mac fans (including two of the guys from