title: Dragging URLs into my app
body: <p>I posted <a href="https://stackoverflow.com/questions/10308008/nstableview-and-drag-and-drop-from-finder">this question</a> about dragging content from OS X Finder into an <code>NSTableView</code>. This all works nicely now. However, if I want to drag URLs from a browser address bar into my app, I first need to drag them to the desktop (where they appear as a .webloc file) and then drag them into my app.</p>
  
  <p>Is there a way to directly drag them from the browser address bar into my app, without having to drag them to the desktop first?</p>
  
  <p>I tried registering <code>kUTTypeURL</code> but this doesn't seem to work as dragged URLs bounce back to their origin:</p>
  
  <pre><code>[[self sourcesTableView] registerForDraggedTypes:[NSArray arrayWithObjects: (NSString*)kUTTypeFileURL, (NSString*)kUTTypeURL, nil]];
  </code></pre>