On Jan 26, 2007, at 10:13 AM, Philippe Casgrain wrote:
Hello,
I have this great idea about turning a part of my app into a Dashboard
widget. I need a window (an area, a canvas if you wish) that I can
draw
into, responding to user input with a pen tablet. So it's a small
drawing application, if you wish.
After talking to the Dashboard presenter at the Leopard Tech Talk
(which
was great, btw), the conclusion is that I should build some kind of
plug-in to be hosted in my widget.
I'm a fairly experienced Mac developer, yet I cannot seem to find any
resources to do this Maybe I'm googling the wrong terms. Does anyone
have a link? Sample code?
Thank you,
Philippe Casgrain
Philippe—
There are a number of options at your disposal. First off, I'd
suggest that you take a look at the JavaScript canvas object and see
if you can accomplish your goals with it:
<http://developer.apple.com/documentation/AppleApplications/
Conceptual/SafariJSProgTopics/Tasks/Canvas.html>
It's considerably more lightweight than native drawing, meaning that
your widget loads quicker and runs a little faster.
If you find that going the native code route is the only way, you
should look at creating a plug-in. If the plug-in is meant strictly
for a Dashboard widget, use the Web Kit plug-in:
<http://developer.apple.com/documentation/InternetWeb/Conceptual/
WebKit_PluginProgTopic/Tasks/WebKitPlugins.html>
--
Christian Wagner
Writer — Apple TechPubs
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden