Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView / Drag and Drop: Any API or constants to detect the start of a drag?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.