Ptolemy II 3.0.2 Notes for Mac OS X
Mac OS X Java 1.4 Instructions
Ptolemy II 3.0.2 requires Java 1.4 because it uses the java.net.URI class
which is not present in Java 1.3.
Mac OS X 10.2 is required to run Java 1.4.
http://developer.apple.com/java/faq/index.html#gen_1
says:
Q: What version of Java is included on Mac OS X?
A: Apple is now shipping a J2SE 1.4.1 implementation for Mac OS X 10.2 Jaguar, available via the Software Update mechanism. It is based on the J2SE 1.4.1_01 JDK with the HotSpot Client VM.
Mac OS X Web Start Problems
Under Mac OS 10.2 with Java 1.4, the Web Start binary downloads and starts up, but there might be a delay while the rest of the modules are pulled over the network.Mac OS X UI bugs
- Drag and Drop does not work
- Dragging an actor from the actor library pane on the left results in
java.lang.ClassCastException at sun.awt.datatransfer.DataTransferer.translateTransferable(DataTransferer.java:1197) at apple.awt.CDataTransferer.translateTransferable(CDataTransferer.java:128) at sun.awt.datatransfer.DataTransferer$6.run(DataTransferer.java:1937) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:448) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:230) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
The following Sun Java Topic might be of use
http://forum.java.sun.com/thread.jsp?thread=184916&forum=5&message=654598
Making ptolemy/vergil/toolbox/PtolemyTransferable.java implement Serializable might help. Editing how the DataFlavor is created in PtolemyTransferable might also help:
public static final DataFlavor namedObjFlavor = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType + ";class=ptolemy.kernel.util.NamedObj", "Named Object");
The above change was added between Ptolemy II 3.0-beta and Ptolemy II 3.0.2. - There are problems with the right mouse button
- Usually click and hold or Control-click simulates the right button, but
not under HyVisual
In Ptolemy II 3.0.2, we modified -
ptolemy/vergil/actor/ActorEditorGraphController.java
to use Command-Click to create new relations and drag new edges