So I want to drag an object from one source to multiple potential destinations. When the object is over each destination, I want it to 'morph' into a different image. Is there a straightforward way to do this from the NSDragSource perspective?
+2
A:
There's no way to do this using just the drag source APIs.
If you look at Interface Builder it does something similar to what you want. When you drag a button out of the library the button animates in the middle of the drag.
According to most people the way Apple is doing this is by making the drag image a small transparent image. Then they create a Window and have it follow the mouse. You can then use the window to do any type of animation you want.
Leibowitzn
2009-10-10 05:58:32
+3
A:
Joshua Nozzi has posted a great way to do this: http://joshua.nozzi.name/2009/10/jlndrageffectmanager/
Ben Gottlieb
2009-11-27 22:05:40
Yep. This is a drop-in manager for this particular effect. The download contains a demo app.
Joshua Nozzi
2009-12-14 03:23:40
If you end up using this class, just let me know and I'll add your app to the list on the source page.
Joshua Nozzi
2010-07-05 18:53:36