Re: Changing draggedImage in mid-drag
Re: Changing draggedImage in mid-drag
- Subject: Re: Changing draggedImage in mid-drag
- From: Greg Titus <email@hidden>
- Date: Mon, 17 Sep 2001 18:13:11 -0700
On Monday, September 17, 2001, at 05:04 PM, Don McConnell wrote:
Hello ...
fd> Apple cheats all over the place :-) [although the movie-
> dragging non-example isn't evidence of this]
What about icon dragging in the Dock? Not only does an icon
slide over to its new position, it _fades_in_ as well. Apple
folk appear to have more control over dragged images than
they seem willing to share.
Nah. The dock sliding animation as you drag is no problem because you
can do whatever drawing you want in your own window due to
-draggingUpdated:. The icon fading in happens _after_ you do the drop,
and again is possible to do entirely within your own window drawing
during -concludeDragOperation:.
There's no need to cheat when what you are doing is changing how _you_
draw due to a drag into you. (All sorts of feedback on incoming drags
happens in various apps and it doesn't require cheating). The difficulty
(and the original question) was in changing the actual image to be
dragged in the middle of a drag _out_.
My advice would be: find some other way to give the feedback you want to
give. I.e. don't do this. :-)
-Greg