Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a "Netscape" plugin for use in Dashboard




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>


If your plug-in needs to be cross-platform or usable in non-Web Kit- based browsers, read Mozilla's plug-in documentation for Netscape- style plug-ins:
<http://www.mozilla.org/projects/plugins/>
<http://developer.mozilla.org/en/docs/Gecko_Plugin_API_Reference>


For more on the difference between Web Kit and Netscape-style plug- ins, review:
<http://developer.apple.com/documentation/InternetWeb/Conceptual/ WebKit_PluginProgTopic/Concepts/AboutPlugins.html>


Thanks!

Christian.

--
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

This email sent to email@hidden
References: 
 >Creating a "Netscape" plugin for use in Dashboard (From: "Philippe Casgrain" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.