Re: [Swingosc-devel] dragSink: discrepancy between Cocoa and Swing
Brought to you by:
sciss
From: James H. <jam...@gm...> - 2009-03-12 12:43:10
|
I thought this might fix it, but it doesn't. It seems interpretDroppedStrings is not used anywhere? JSCDragView : JSCStaticTextBase { var <>interpretDroppedStrings = false; hjh On Mar 11, 2009, at 11:35 PM, James Harkins wrote: > x = 5; > > w = Window("what a drag", Rect(10, 100, 150, 50)); > d = DragSink(w, Rect(5, 5, 140, 40)) > .action_({ |view| view.object.dump }); > w.front; > > > // now select and drag the x into the dragsink > x > > In Cocoa, you get: > > Instance of String { (10056B70, gc=78, fmt=07, flg=00, set=01) > indexed slots [1] > 0 : x > } > > In Swing, you get: > > Integer 5 > > I remember a discussion about changing the Cocoa drag sink so that > the string is not interpreted every time the pointer crosses a drag > sink area, which is not a bad idea. Anyway, it doesn't matter to me > which one it ends up being -- as long as both of them are the same. > > This needs to be fixed before RC, IMO. : H. James Harkins : jam...@de... : http://www.dewdrop-world.net .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..: "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman |