• 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: cocoa dragging and constraining coordinates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa dragging and constraining coordinates


  • Subject: Re: cocoa dragging and constraining coordinates
  • From: Kurt Sutter <email@hidden>
  • Date: Mon, 23 May 2011 20:04:53 +0200

If I understand your proposal correctly, you propose not to use cocoa dragging. However, please correct me if I am wrong, but I think this would make it impossible to drag the objects to other applications, such as Keynote. This would make our users unhappy (the objects have a pdf representation that some users want to drag into Keynote)

Kurt

On 23. May 2011, at 17:48, Kyle Sluder wrote:

> On Mon, May 23, 2011 at 8:28 AM, Kurt Sutter <email@hidden> wrote:
>> My view implements dragging of the objects it displays. The user should be able to constrain the coordinates of the drag to purely horizontal/vertical by holding down the shift key, i.e. the position of the image passed to dragImage:at:offset:event:pasteboard:source:slideBack should be constrained to a purely horizontal/vertical offset when the users holds the shift key down. I have checked out the NSDraggingDestination protocol but found nothing helpful.
>
> Are you trying to do something similar to what NSTableView does when
> dragging NSTableColumns? If so, forget about using NSDraggingSource
> and just implement it directly in your mouse tracking loop.
>
> --Kyle Sluder

_______________________________________________

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: cocoa dragging and constraining coordinates
      • From: Kyle Sluder <email@hidden>
References: 
 >cocoa dragging and constraining coordinates (From: Kurt Sutter <email@hidden>)
 >Re: cocoa dragging and constraining coordinates (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Spotlight help returns correct results, will not show in help viewer
  • Next by Date: Re: cocoa dragging and constraining coordinates
  • Previous by thread: Re: cocoa dragging and constraining coordinates
  • Next by thread: Re: cocoa dragging and constraining coordinates
  • Index(es):
    • Date
    • Thread