After som experimenting, I seem to have a working Drag and Drop-action in my application (In the sense that whenever I drag a file to my application, the path is saved into a varible, which is the desired behaviour).
However, the implementation so far reeks of unprofessionalism. The drop won't work unless my application is the currently active one, the cursor does not show the green bubble with a plus sign in it, and dragging the file to my applications dock icon doesn't result in anything at all.
I've looked at the "Drag and Drop Programming Topics for Cocoa" pdf from the documentation and read the "Drag and Drop"-chapter in "Cocoa Programming for Mac OSX" , but neither one of them does anything but scratch the surface regarding this, giving example code for situations that do not really apply for my project.
Any help or nudge in the right direction would be greatly appreciated.
However, the implementation so far reeks of unprofessionalism. The drop won't work unless my application is the currently active one, the cursor does not show the green bubble with a plus sign in it, and dragging the file to my applications dock icon doesn't result in anything at all.
I've looked at the "Drag and Drop Programming Topics for Cocoa" pdf from the documentation and read the "Drag and Drop"-chapter in "Cocoa Programming for Mac OSX" , but neither one of them does anything but scratch the surface regarding this, giving example code for situations that do not really apply for my project.
Any help or nudge in the right direction would be greatly appreciated.