github/twui — pull request #124 by galaxas0 (2012-10-21 01:24:55+00:00)
Title: TUIImageView + Pasteboard Dragging

Now, `TUIView`s can also take part in pasteboard dragging, through the 10.6-compatible `NSDraggingDestination` and `NSDraggingSource` informal protocols. I've added support for initiating a drag, much like `NSView` as well.

To showcase the new pasteboard dragging support, I've also revamped the `TUIImageView` to support `UIImageView`-like animations, as well as `NSImageView`-like pasteboard support. To see the new features in effect, just open up the scroll view window in the example app, by pressing `CMD-2` or going to the Window menu. You can drag new images in, and the current image out. When the image is saved, it checks for duplicates and renames accordingly (like Finder).