On 23. May 2011, at 20:15, 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?
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 (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