Changing slide back destination during drag
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