Conditional slideback?
Conditional slideback?
- Subject: Conditional slideback?
- From: Tomas Franzén <email@hidden>
- Date: Fri, 22 Feb 2008 03:47:28 +0100
Hi,
I have some draggable items that can be dropped outside of their
container to 'poof'-delete them. I don't want the drag image to slide
back after they're poofed (of course), but I do want them to slide
back if they're dropped inside their container.
However, whether to slide back or not is decided when calling
dragImage:at:offset:event:pasteboard:source:slideBack:, which is used
to _start_ the drag, which is too early - I don't know whether to poof
or not before the drag has started.
Is there a way to decide whether to slide back when dropping, like
from draggedImage:endedAt:operation:? I tried the (now deprecated)
method slideDraggedImageTo: from NSDraggingInfo, but it doesn't seem
to actually do anything.
Any ideas?
Thanks.
Tomas Franzén
Lighthead Software
http://www.lightheadsw.com/
_______________________________________________
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