Tuesday, May 15, 2007

Dragging an Image in a Cocoa View

I wrote the following code for a poster on the Cocoa-dev mailing list. It's an NSView subclass that has an image "inside it" that you can drag around.

ImageDragView.h & ImageDragView.m

Hopefully someone else might find that useful :-)

2 comments:

Peter Hosey said...

FYI, both those source files are 404.

Joshua said...

Fixed it - thanks!