Programmatically canceling dragging
Programmatically canceling dragging
- Subject: Programmatically canceling dragging
- From: Gideon King <email@hidden>
- Date: Wed, 23 Jul 2003 01:34:45 +1000
I have a situation in my application where the user is dragging an item
from one place to another, and when they get to a certain location in
my view, I want to programmatically end the drag operation and continue
dealing with the mouse moved events. From looking at the documentation
of the NSDraggingSource and NSDraggingDestination methods, it appears
that the calls you get are purely telling you what has happened,
without letting you have the kind of control I need.
I thought that one way to do it might be to insert a mouse up event
into the run loop, but this would get very messy, and I would still
have to ensure that the drag operation said that it was OK to drop at
that point etc. This seems a nasty way to go about it.
Is it possible to cancel the drag operation and get the system to
remove the image without sliding it back?
I was also wondering whether it was possible to change the image during
the middle of a drag operation?
Thanks
Gideon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.