| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
After installing Security Update 2007-009 (PPC) to my OS 10.4.11 PowerMac, problems emerged in the following, mostly vanilla, drag and drop code: public void drop(DropTargetDropEvent dtde) { Transferable t = dtde.getTransferable(); try { if (t.isDataFlavorSupported(fileFlavor)) { idTree.setBorder(idTreeOrigBorder); dtde.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE); java.util.List files = (java.util.List) t.getTransferData(fileFlavor); loadFiles(files); dtde.dropComplete(true); } When a file from the Finder is dragged into the component to which the above code is attached, the application started printing these messages in the console : 2007-12-18 11:48:50.659 java[641] A zero-length URL was found on the pasteboard. 2007-12-18 11:48:50.659 java[641] Looked for URLs on the pasteboard, but found none. 2007-12-18 11:48:50.677 java[641] CDataTransferer_dragQueryFile: plist not a valid NSArray (error XML parser error: Unexpected character U at line 1 Old-style plist parser error: Unexpected ';' or '=' after key at line 1 ). The "files" variable in the code above then is null for the call to loadFiles(), and problems ensue. This problem occurs with both the 1.4.2 and the 1.5 JREs. Has anyone else experienced this problem, and is there a solution? ------------------------------------------------------ Keith Bettinger Lead Programmer/Head Systems Administrator Stanford Psychiatry Neuroimaging Laboratory Center for Interdisciplinary Brain Sciences Research (650) 498-4620 ------------------------------------------------------ |
_______________________________________________ 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.