Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get a window to receive drag and drop files in Xcode

i am trying to get drag and drop working in xcode 3.1.4 on osx/leopard. any pointers or hints or maybe even example code? i cannot find anything out there and it is really disappointing. i want to have the interface respond if files are dragged on the main window.

like image 614
z3cko Avatar asked Jan 15 '10 12:01

z3cko


1 Answers

To register a window or view as a dragging destination, use the registerForDraggedTypes: method of NSWindow or NSView.
You can find further details in the Getting Started with Drag and Drop Programming guide on developer.apple.com

like image 103
Thomas Zoechling Avatar answered Nov 15 '22 16:11

Thomas Zoechling