• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
      • From: Stéphane Sudre <email@hidden>
References: 
 >NSView / Drag and Drop: Any API or constants to detect the start of a drag? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
  • Next by Date: Re: Smart way to get "etched" borders in Leopard
  • Previous by thread: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
  • Next by thread: Re: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
  • Index(es):
    • Date
    • Thread