Re: cocoa dragging and constraining coordinates
Re: cocoa dragging and constraining coordinates
- Subject: Re: cocoa dragging and constraining coordinates
- From: Seth Willits <email@hidden>
- Date: Mon, 23 May 2011 11:40:19 -0700
On May 23, 2011, at 11:15 AM, 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?
If this is the case (I'm not sure either), then you'd do an internal-only drag using normal events, and when then mouse goes outside of the bounds of the view, it starts a an actual drag session. Safari's tabs I think are an example which fit with what he might want to do. You can only drag them horizontally which is done by normal events, and then if you drag too far vertically or of the ends of the window, it pops the tab off to drop elsewhere.
--
Seth Willits
_______________________________________________
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