3

My Cocoa app can receive Drag operations from other applications.

Is there a way to determine which other application initiated the drag (i.e. from where the data is coming from)?

I've implemented - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender, but I could not find this kind of information in the dragging info object.

Use case: Users can select text in Safari and drop it into my app. I'd like to tell from which website the text was pasted.

Thanks!

Mark
  • 1,447
  • 2
  • 14
  • 26
  • 1
    I don't think this is part of the API, so maybe if you explain your ultimate goal others will have alternative suggestions. – Jon Hess May 29 '11 at 09:41

0 Answers0