• 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: Tue, 24 May 2011 05:21:36 +0200

On 23. May 2011, at 20:15, Kyle Sluder wrote:

> On Mon, May 23, 2011 at 11:10 AM, Kyle Sluder <email@hidden> wrote:
>> If you want to drag into other applications, you really can't
>> constrict the drag direction. It doesn't make sense.
>
> Hmm, maybe I'm not clear on what you want to do. Are trying to enable
> drag-to-another-app, but also drag within a canvas, and it's only
> within the canvas that you want to enable the
> shift-to-constrain-direction behavior?

Exactly
>
> While most apps don't behave this way, if you wanted to do that you
> could do it in your dragging *destination*.

How? Is there any way to constrain the coordinates of the image passed to
dragImage:at:offset:event:pasteboard:source:slideBack from the drag destination?
>
> But the big question is how to you discern between a within-app drag
> that extends beyond the visible bounds of your window, versus an
> attempt to drag outside the app? There really isn't any API for
> telling the drag manager to start or stop allowing inter-application
> drags while in the middle of a drag operation.
>
>
My drag destination can distinguish where the drag comes from. If it is an
in-applicaiton drag (in fact, an in-document drag), it could constrain the
coordinates of the image (if I knew how)

k

_______________________________________________

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

  • Prev by Date: Getting a handle on CoreAnimation and MVC
  • Next by Date: encoding of file names
  • Previous by thread: Re: cocoa dragging and constraining coordinates
  • Next by thread: Re: cocoa dragging and constraining coordinates
  • Index(es):
    • Date
    • Thread