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: Unsuccessful making widget from simple applet



My two cents, not based on experience but looking at Apple's example code, you're widget doesn't work because you use Java not Javascript. If you want to use Java, you'll need a widget-plugin:

http://developer.apple.com/documentation/AppleApplications/Conceptual/ Dashboard_Tutorial/index.html?http://developer.apple.com/ documentation/AppleApplications/Conceptual/Dashboard_Tutorial/ Widget_Basics/chapter_3_section_1.html


I'm suggesting the plug-in because of Apple's 'Fortune' example code; that code uses a Cocoa plug-in, unlike every other example which is Javascript. Apple's documentation specifies a Cocoa-plugin so a Cocoa- Java project may work.



http://developer.apple.com/documentation/AppleApplications/Reference/ Dashboard_Ref/index.html#//apple_ref/doc/uid/TP40001339



http://developer.apple.com/documentation/AppleApplications/Conceptual/ SafariJSProgTopics/Tasks/ObjCFromJavaScript.html#//apple_ref/doc/uid/ 30001215



Sample code is from 10.4's install DVD: /Developer/Examples/ Dashboard/Fortune


Rob




On 31-Jul-05, at 3:02 PM, Mickey Segal wrote:

I tried to make a Macintosh OS 10.4 widget from a Hello World java applet and couldn't get it to work. The full code is at: www.segal.org/java/widget/ along with a downloadable Hello Java.sit file and a copy of the applet working in the web page.

Although I know a fair amount about Java applets, I know very little about the Macintosh per se, so it is possible I am committing some basic Macintosh error. I'd appreciate if someone could point out what is wrong so I could post some cookbook applet widget code and help Java people make widgets (although the demand that is most obvious so far is from my 5 year old, who is completely obsessed with widgets, but that should be a good leading indicator).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/rob.macgregor% 40sympatico.ca


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Unsuccessful making widget from simple applet (From: "Mickey Segal" <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.