Re: cocoa dragging and constraining coordinates
Re: cocoa dragging and constraining coordinates
- Subject: Re: cocoa dragging and constraining coordinates
- From: Kyle Sluder <email@hidden>
- Date: Mon, 23 May 2011 11:15:01 -0700
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?
While most apps don't behave this way, if you wanted to do that you
could do it in your dragging *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.
--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