• 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: Starting a drag in mouseDragged
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Starting a drag in mouseDragged (From: James Walker <email@hidden>)

  • Prev by Date: Re: Putting an image on a CALayer
  • Next by Date: Problems when putting a window between desktop and desktop icons
  • Previous by thread: Starting a drag in mouseDragged
  • Next by thread: silly event question 'cuz i'm a n00b
  • Index(es):
    • Date
    • Thread