Re: Sliding an image
Re: Sliding an image
- Subject: Re: Sliding an image
- From: Allan Odgaard <email@hidden>
- Date: Sat, 1 May 2004 11:06:46 +0200
On 1. May 2004, at 10:43, M. Uli Kusterer wrote:
I know this was asked for at WWDC [...]
Which answer was given? [...]
The Drag Manager automagically slides back an image if it is dropped
on an unnacceptable location. Carbon provides a way to prevent this
feedback, IIRC, but I don't think you can use it separately.
Cocoa also allows to completely disable the slide-back feedback, but
then it never appears.
What exactly is this for, anyway? It would help in coming up with a
useful solution.
1) If you allow the user to drag a proxy icon which should, when
dragged far enough away from its source, disappear in a cloud of smoke,
then you need to disable slide-back, but need to manually invoke it if
the icon was not dragged far enough away. The Dock does this, but
clearly is managing its own dragging, since the image also goes from
transparent to non-transparent on the way back.
2) Sometimes items are dragged simply to be moved, e.g. if you enable
"snap to grid" in Finder, then when dragging an item to anywhere on the
desktop, the image will slide to the proper grid-location.
3) Extra visual feedback when items are dragged "into" a container of
some sort, e.g. when you drag files to one of the locations in the
Finder sidebar, it will slide the image into that folder -- although
this must also be custom stuff, as I believe it both zooms down the
image a bit and moves it in a spline-ish curve of some sort, rather
than a straight line.
That being said, you could create a transparent, borderless window
with your image in it, and simply move that around. [...]
But since some of the stuff dragged, to which I'd like to provide the
visual end animation, can be dragged to other applications, I'd have a
headache trying to allow this -- and anyway am hesitant to replicate
Apple functionality just because their implementation is behind their
documentation ;)
_______________________________________________
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.