title: Cocoa WebView Drag-Drop
body: <p><br>
  In my Application i have one NSOutlineView having list of somefiles and one WebView,<br>
  User allows to drag any item from the Outline view to WebView, and on that , i am suppose to handle the database transaction, </p>
  
  <p>In the Outline view , i have implemented following methods, </p>
  
  <pre><code>- (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray *)items toPasteboard:(NSPasteboard *)pboard{
      [self log:@"write Items”];
      // Some other code to prepare the Write Item, 
  
  }
  - (NSDragOperation)outlineView:(NSOutlineView *)outlineView validateDrop:(id &lt; NSDraggingInfo &gt;)info proposedItem:(id)item proposedChildIndex:(NSInteger)index{
  
  }
  
  - (BOOL)outlineView:(NSOutlineView *)outlineView acceptDrop:(id &lt; NSDraggingInfo &gt;)info item:(id)item childIndex:(NSInteger)index{
  
  }
  </code></pre>
  
  <p>On the WebView side, i have implemented following, methods, </p>
  
  <pre><code>- (NSDragOperation)draggingEntered:(id &lt;NSDraggingInfo&gt;)sender {
      NSPasteboard *pboard;
      NSDragOperation sourceDragMask;
  
      [self log:@"Inside draggingEntered”];
  return NSDragOperationEvery;  
  }
  
  - (BOOL)prepareForDragOperation:(id &lt; NSDraggingInfo &gt;)sender{
  
  }
  - (BOOL)performDragOperation:(id &lt; NSDraggingInfo &gt;)sender{
  
  }
  </code></pre>
  
  <p>Now when i drag an element from outline view to WebView, i could see, writeItem of Outline view is getting called,<br>
  and in the Webview, DragEnter is getting called from where, i am <strong>not returning</strong> drag operation NONE, but returning NSDragoperationEvery, </p>
  
  <p>The problem is that, i am not getting method, prepareForDragOperation and PerformDragOperation,   </p>
  
  <p>Can anyone help me please,<br>
  Kind Regards<br>
  Rohan </p>