On Aug 11, 2011, at 12:57 PM, Chris Paveglio wrote:

> I've been trying to wrap my head around how to drag a file reference out of 
> my application's table, and onto the Desktop or Finder window, and have that 
> file be either moved or copied there. I've read a lot of posts here which are 
> mostly old, on the topic, and not many give code examples of what I think I 
> need.
> 
> The problem I have is that I cannot figure out how to get the reference to 
> the place where I am dropping the files in the Finder. What method returns 
> the file path string or NSURL of the drop location?


There isn't any method, but there is a way. If your application is performing a 
file promise drag, then the data source method -tableView: 
namesOfPromisedFilesDroppedAtDestination:dropDestinationforDraggedRowsWithIndexes:
 will have the drop location as one of its arguments. I don't think your 
application can get that information if it is not performing a file promise 
drag.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to