On May 23, 2011, at 11:15 AM, Kyle Sluder wrote:

> On Mon, May 23, 2011 at 11:10 AM, Kyle Sluder <kyle.slu...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to