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: Charles Steinman <email@hidden>
- Date: Fri, 9 Nov 2007 16:51:09 -0800 (PST)
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.
>
> 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
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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