MacDevTips Widget: Version 1.0

May 30, 2008

For several months I’ve been meaning to build a Dashboard widget. There are several reasons for this endeavor – First, learning new tools and languages is a hoot. Second, widgets are your friend and won’t be going away anytime soon (read, it’s always good to keep up with technology). Finally, I’m all about sharing interesting code, tips and tricks through collaborative (open source) development. Read on for more about that last point.

I plan for this to be an on-going series, with each new post offering a new version of the widget. With each new release I will include all code in the form of a Dashcode project, which will offer a means for you to import the project, poke around to better understand how to build widgets and modify the code as you see fit. Future releases (and the accompanying blog post) will include descriptions, code snippets, screenshots and videos (screencasts) demonstrating concepts from visual layout to code examples to debugging.

Version 1.0 looks as follows, it’s quite simple, from both the feature perspective and development point of view – an image across the top, a listing of recent blog posts, and an option to get more information (clicking the little in the lower right flips the widget to show the reverse side).

I want this to become a community built widget. I’ll run with the first few releases, however, to take this widget to the next level here are a few things where I would welcome some expertise:

  • Artwork for a logo (see the Top 50 Widget List for some nice examples)
  • JavaScript / Dashcode expertise to help create unique & interesting functionality

All contributors will be acknowledged on the back of the widget. For example, as of release 1.0, the flipside looks as follows:

Depending on how this project progresses, and the support I can rally around extending the widget, at some point it may make sense to move this to Google Code as a community project. We’ll worry about that another day…

Without further ado, let me introduce the inaugural MacDevTips widget. The files included in the 1.0 release:

You have two options to give the widget a try:

  1. Install the widget on your Dashboard (download, unzip and double-click the widget)
  2. Run the widget from Dashcode (download, unzip, open and run the project within Dashcode)

In the next post on this widget I’ll demonstrate through a screencast how I created the widget in Dashcode. I’ll also bump the release to 1.1 by adding code to resize the widget.

It’s always good to have a goal, and for this widget I think we should shoot for landing in the top 50 of the Apple Dashboard Widget repository. With the right mix of features and an open source approach to enable others to learn/build widgets, I have no doubt we’ll reach that goal sooner rather than later.

If you’d like to get involved in building an upcoming release of the MacDevTips widgets, drop me a note and we’ll get things rolling!

3 comments

The idea is nice I’ll keep an eye on that.
But there is one thing.
The most content doesn’t seem to fit into the tiny little Widget and there is no way resize it.

Cheers,

Kwasi

by Kwasi on May 30, 2008 at 11:16 am. Reply #

Thanks for the feedback Kwasi. When I complete the upcoming screencast on how I created the widget as it exists today, I’ll add support for resizing as well…version 1.1 :)

by john on May 30, 2008 at 1:02 pm. Reply #

Thanks for MacDevTips Widget. I’ll be following it.

I see that MacDevTips Widget’s scrolling behavior is such that a click to scroll the content results in a scroll of considerably more that one page’s length of content. Thus, the scroll “jump” is too great and there is content between the previous display and the scrolled display that is not shown.

I see the same behavior in a scrolling widget I’ve been toying with and haven’t figured out a fix… Any suggestions?!?

by jimm on Jun 9, 2008 at 7:35 am. Reply #

Post a comment:

Required.

Required. Not published.