Re: Starting a drag in mouseDragged
Re: Starting a drag in mouseDragged
- Subject: Re: Starting a drag in mouseDragged
- From: James Walker <email@hidden>
- Date: Tue, 21 Oct 2008 11:19:37 -0700
James Walker wrote:
The documentation on -[NSView
dragImage:at:offset:event:pasteboard:source:slideBack:] says that you
can invoke it either in mouseDown or mouseDragged. It makes more sense
to me to call it from mouseDragged, since in most cases mouseDown will
just indicate a click. However, if I start the drag in mouseDragged, I
don't see any drag image until I release the mouse button, at which time
the image briefly appears and slides back. If I start the drag with the
exact same code but in mouseDown, then all looks good. Does that ring
any bells?
For the record, this turns out to be a Carbon/Cocoa conflict. The
Carbon function SetAutomaticControlDragTrackingEnabledForWindow causes
this problem, even if the Carbon window was closed long before the Cocoa
window is created. <rdar://6307637>
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.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