Dragging an item from my table view onto another app.

2008-06-20 Thread Eloy Duran
Hi, I'm still very new to all the DND stuff, so here goes: I want to be able to drag an item from my table view onto, for instance a texteditor, and have it open the file that the item represents. (Also having it drop on Terminal and inserting the path to the file would be nice, but that

Re: Dragging an item from my table view onto another app.

2008-06-20 Thread Eloy Duran
Ok so the problem was that I missed the part about letting the table view know it should allow external drag operations... :) In the initialization code I added: @applicationsTableView .setDraggingSourceOperationMask_forLocal(OSX::NSDragOperationGeneric, false) And now it works great.