Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[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?



Correct me if I'm wrong, but I don't believe text fields start a drag depending on the distance moved by the mouse. Instead, as I far as I'm aware it's time based. i.e. to drag you have to click and hold for a fraction of time before moving the mouse.

This would have been fairly easy to achieve using an iVar in - mouseDown and -mouseDragged.

Mike.

On 10 Nov 2007, at 10:48, Stéphane Sudre wrote:

Unfortunately, I had a look at this method during my search.

There's no "magnetism" with this call : you get the message as soon as the mouse moved from 1 pixel.

This is not the way it works in text fields, table view, etc.

On samedi, novembre 10, 2007, at 01:51  AM, Charles Steinman wrote:

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.

[...]

_______________________________________________

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/cocoadev% 40mikeabdullah.net


This email sent to email@hidden

_______________________________________________

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
References: 
 >Re: NSView / Drag and Drop: Any API or constants to detect the start of a drag? (From: Stéphane Sudre <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.