On Mon, May 23, 2011 at 8:21 PM, Kurt Sutter <k...@quansoft.com> wrote:
> 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?

By not dragging an image, and drawing the dragged object directly in
your view, or in a transparent overlay window that follows the mouse.

>>
>> 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)

Yes, all drag destinations can discern whether the drag is coming from
within the app, and then make further decisions based on that info.

But if I pick up an object and drag it to the edge of your document
window, do I expect further movement to scroll the document window, or
to switch to an out-of-application drag?

--Kyle Sluder
_______________________________________________

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