Thursday, November 29th, 2007
We have had a couple of interesting announcements in the worlds of Widgadgets. First, Yahoo! launched a new version of the Widget platform: Yahoo! Widgets 4.5, and second, Google Gadgets have gone across another platform, with new support for the Mac and Dashboard.
Yahoo! Widgets 4.5
Whatâ€™s New for Widget developers:
Yahoo! Widgets 4.5 now makes it easier for Widget authors to drive deeper engagement with users.
- Build even more engaging desktop Widgets, using new rich-media capabilities, including video.
- Utilize existing web development (HTML and Flash) skills to build compelling desktop Widgets.
- Offer users the ability to download their desktop Widgets from any webpage within 1-2 clicks via the new In-page installer badges.
- Enable easier discovery by more users, via the new Yahoo! Widget Gallery with improved SEO.
Google Gadgets for the Mac
- WebKit is case-sensitive, JScript is not, which can lead to problems if you assume can you do things like interchange SetTimeOut() and setTimeout().
- Avoid JScript-only features like collections and ActiveX.
- Avoid IE-specific DOM extensions, just as if you were writing a multi-browser web application.
Avoid Windows-specific APIs
- You shouldn’t assume ActiveX or certain DLLs are available. Neither WebKit nor Mac OS X supports ActiveX, so these gadgets must be rewritten.
- Avoid Windows-only APIs such as Google Talk. These APIs are not (yet) available on Mac OS X.
Understand how Dashboard is different
- The Dashboard environment is very different from a web page or the Desktop sidebar on Windows in that it comes and goes as the user activates it. Don’t rely on your gadget always being visible. Your gadget won’t run or update when Dashboard isn’t in the foreground.
- Don’t rely on access to the file system. The security model for Dashboard doesn’t allow arbitrary file access to the hard disk, although your gadget does have access to files in its own archive. Things like file pickers won’t work. Note that while restricted file system access is a departure from how gadgets work on Windows, it’s consistent with Dashboard’s security model and the behavior of other widgets developed for Mac OS X.
For more details, see Writing a Cross-Platform Gadget, part of the Desktop Gadget API documentation.
If you’re interested in developing your own gadget, visit the Gadgets API homepage. If you’re already a gadget developer, download the beta today to test your gadget and ensure that it works correctly.
Posted by Dion Almaer at 1:00 pm