title: Implementing Drag & Drop for Image Well
body: <p>I am somewhat of a newbie, working on my first Mac app, an element of the functionality of which is that it allows users to drop an image into an image well, the app then needs to perform certain actions on the dropped image.</p>
  
  <p>I have created my image well, and have made it editable, as such I can drop an image onto my image well, and it appears within my app.</p>
  
  <p>Where I'm running into trouble is implementing event handlers so that I carry out actions when an image is dropped onto the image well. Specifically I need to load the image into an NSImage object.</p>
  
  <p>I have had a read through this Mac Developer Library article: <a href="https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/DragandDrop/DragandDrop.html" rel="nofollow">https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/DragandDrop/DragandDrop.html</a> but can't quite get my head around it.</p>
  
  <p>I would very much appreciate if someone could give me an example of how I would go about achieving this.</p>
  
  <p>Many thanks in anticipation.</p>