• 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
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]

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


  • Follow-Ups:
    • Re: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
      • From: Charles Steinman <email@hidden>
  • Prev by Date: Re: ASCII Hexadecimal to ASCII Decimal with NSData
  • Next by Date: Re: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
  • Previous by thread: Re: ASCII Hexadecimal to ASCII Decimal with NSData
  • Next by thread: Re: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
  • Index(es):
    • Date
    • Thread