Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] DragSource and 'promised data'

Title: DragSource and 'promised data'
Hi,

Looking at the Carbon implementation of DragSource, Transfer objects that aren’t of type FileTransfer aren’t asked to provide their data until the drag actually starts, and the drag callback is invoked. In Cocoa, it’s different: you have to provide the data up front on the NSDragPboard when you start the drag.

I guess the consequence of this is that the Transfers will always be asked to provide the data, even if the drag isn’t completed. Does this matter? I don’t see anything DragSourceListener.dragSetData that implies it is only called after the drag is completed, but I thought I’d ask.

Scott

---------------
Scott Kovatch
Flex Engineering
Adobe Systems, Inc.
skovatch@xxxxxxxxx

I am Scott Kovatch, and I approved this message.

Back to the top