On Nov 10, 2007, at 2:48 AM, Stéphane Sudre wrote:
Unfortunately, I had a look at this method during my search.
There's no "magnetism" with this call : you get the message as soon
as the mouse moved from 1 pixel.
Stephane,
What we typically do in a Cocoa app for the behavior you describe is
to save the location of the mouseDown event, and compare it to the
location of a mouseDragged event. If the distance is greater than
whatever threshold you want, then you go ahead and send a -
dragFile:... or -dragImage:... type of message.
In some cases, drag and drop is chosen by a modifier key, and in those
situations, you probably want to go ahead and initiate the dragging
session without caring how far the cursor has moved.