Re: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
Re: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
- Subject: Re: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
- From: Mike Abdullah <email@hidden>
- Date: Sat, 10 Nov 2007 13:07:34 +0000
Correct me if I'm wrong, but I don't believe text fields start a
drag depending on the distance moved by the mouse. Instead, as I far
as I'm aware it's time based. i.e. to drag you have to click and hold
for a fraction of time before moving the mouse.
This would have been fairly easy to achieve using an iVar in -
mouseDown and -mouseDragged.
Mike.
On 10 Nov 2007, at 10:48, 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.
This is not the way it works in text fields, table view, etc.
On samedi, novembre 10, 2007, at 01:51 AM, Charles Steinman wrote:
See -mouseDragged: in NSResponder.
Cheers,
Chuck
--- Stéphane Sudre <email@hidden> wrote:
I must be missing something obvious but I don't find
in the Cocoa
documentation or headers something that exists in
the Carbon/Mac OS
Classic API IIRC.
[...]
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40mikeabdullah.net
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden