NSView / Drag and Drop: Any API or constants to detect the start of a drag?
NSView / Drag and Drop: Any API or constants to detect the start of a drag?
- Subject: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
- From: Stéphane Sudre <email@hidden>
- Date: Sat, 10 Nov 2007 01:43:21 +0100
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.
Detecting the start of a drag operation requires to detect the
following chain of events:
1) mouse left button down
2) mouse moved more than a specific limit
In Carbon/Mac ToolBox, there was an API you could use to know that a
mouse movement was the start of a drag.
In Cocoa, I don't see such an API. I searched the ADC and Dveloper
tools sample code (CocoaDragAndDrop is not a good sample code),
searched the mailing list archive through cocoabuilder.com, quickly
searched cocoadev.com, had a look at the NSTableView source code in
GNUStep with no success.
Would there an API or constant I'm missing?
_______________________________________________
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