• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cocoa dragging and constraining coordinates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa dragging and constraining coordinates


  • Subject: Re: cocoa dragging and constraining coordinates
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 24 May 2011 08:08:51 -0700

On Mon, May 23, 2011 at 8:21 PM, Kurt Sutter <email@hidden> 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 (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

References: 
 >cocoa dragging and constraining coordinates (From: Kurt Sutter <email@hidden>)
 >Re: cocoa dragging and constraining coordinates (From: Kyle Sluder <email@hidden>)
 >Re: cocoa dragging and constraining coordinates (From: Kurt Sutter <email@hidden>)
 >Re: cocoa dragging and constraining coordinates (From: Kyle Sluder <email@hidden>)
 >Re: cocoa dragging and constraining coordinates (From: Kyle Sluder <email@hidden>)
 >Re: cocoa dragging and constraining coordinates (From: Kurt Sutter <email@hidden>)

  • Prev by Date: How to define allowed file extensions in Info.plist?
  • Next by Date: Re: How to define allowed file extensions in Info.plist?
  • Previous by thread: Re: cocoa dragging and constraining coordinates
  • Next by thread: Spotlight help returns correct results, will not show in help viewer
  • Index(es):
    • Date
    • Thread