[futurebasic] Preventing drag drop to finder..

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2004 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Mon, 20 Sep 2004 12:50:25 -0400
  OSX

Any Drag&Drop people out there?

I have a d&d situation working for dragging items within a window to 
another locale in the window. That's the desired operation. But if one 
drags it off the window, the  Finder is making a picture clipping 
(empty)...

I want it such that a drop into the Finder or another app, anywhere 
other than my window, sends the drag thing bouncing back to the dark 
pits from where it came (my window) , and nulling out the drag 
operation.

How to do?  There are other situations where I want to drag from the 
finder into the window, so that still needs to work (right now I check 
for the flavor type to set the canAccept flag)

The thing is based in large part on the drag and drop edit text field 
example on the CD. In this case, it's creating a PICT drag image for 
the drag, and the only information I actually need are the starting 
point, and where it ends in the window. That's not a problem, but when 
the drop is outside the window, I'd like to not have it make the 
picture clipping. Now it might be handy to know that the drop was out 
in Finder Desktop land, in that case I could make a copy of some file 
then. But I don't really want the auto-picture clipping to be made.

Clear as mud?

I would think that SetDropLocation would be the ticket to limit this, 
but I can't find a list of AEDesc constants that would void out the 
Finder  or other application drop? Seems like any D&D aware app is 
going to accept my symbolic pict drag as real data.

Robert