• 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
Changing slide back destination during drag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing slide back destination during drag


  • Subject: Changing slide back destination during drag
  • From: Nathan Vander Wilt <email@hidden>
  • Date: Fri, 26 Sep 2008 13:52:46 -0700

I have a view that allows users to drag copies of the items it contains. I'd like to add autoscrolling to the view, which will move the drag's source item. However, I can find no way to change the drag properties so that upon failure the image will slide back to where the item *is* rather than where it *was* before the view autoscrolled.

I did find the NSDraggingInfo protocol's slideDraggedImageTo: which I suppose I could have called in my draggedImage:endedAt:operation: dragging source method. But this method is a strange one! The Leopard release notes state the following:

"-[NSDraggingInfo slideDraggedImageTo:] is now implemented to behave as documented. This change is enabled only for applications built on Leopard or later to avoid changing behavior of older binaries in ways that may be incorrect."

So it's working "as documented" which would be great, but the documentation says it's deprecated (as of Leopard!) with no alternative method! Was -slideDraggedImageTo: really deprecated in the exact release it was also fixed? Or are the release notes just making a little joke ("it now behaves as...deprecated")?

(And even if it weren't deprecated, would it have enabled me to do what I want?)

thanks,
-natevw
_______________________________________________

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


  • Prev by Date: Re: Always allowing drags from WebView inside a global NSPanel
  • Next by Date: Using aggregate functions in a Core Data Fetch Request
  • Previous by thread: Re: window controllers and managed object contexts
  • Next by thread: Using aggregate functions in a Core Data Fetch Request
  • Index(es):
    • Date
    • Thread