[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Re: drag&drop mystery



Ok, I also tried it in Cocoa now with no problems. In winxp though I
get the same behavior, that it works about 1 out of 10 times.

I have narrowed it down to only be the case with JSCSlider, not the
other GUI's, and only on Linux and Windows (still dont know about
vista but i guess so).

The behaviour is also present with regular drag & drop of values, that
is, without any user defined receiveDragHandler:

( //try dragging&dropping for a while in Linux/Windows
var w, h;
w= GUI.window.new("", Rect(0, 0, 400, 100)).front;
h= GUI.hLayoutView.new(w, Rect(0, 0, 400, 100));

15.do({|i|
	GUI.slider.new(h, Rect(0, 0, 20, 80))
	.value_((15/i).reciprocal)
});
)

It also seems that when a slider instance stops receiving/sending it
wont start again working again when dragging/dropping new things
to/from it.

I accidentally tried with SwingOSC v0.59 and got the error message
included below (for what it's worth) upon dropping the slider on the
button:

java.io.IOException: application/x-java-file-list
	at sun.awt.datatransfer.DataTransferer.translateTransferable(Unknown Source)
	at sun.awt.windows.WDataTransferer.translateTransferable(Unknown Source)
	at sun.awt.datatransfer.DataTransferer$5.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
java.io.IOException: application/x-java-file-list
	at sun.awt.datatransfer.DataTransferer.translateTransferable(Unknown Source)
	at sun.awt.windows.WDataTransferer.translateTransferable(Unknown Source)
	at sun.awt.datatransfer.DataTransferer$5.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)


cheers,
martin

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/