NSPasteboard: Get the name of the application that initiated the drag and drop session.

My Cocoa application can receive drag and drop operations from other applications.

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

I implemented - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender, but I could not find this information in the drag object.

Use case: users can select text in Safari and transfer it to my application. I would like to say from which site the text was inserted.

Thank!

+3
source share

All Articles