Re: Drag and Drop to Finder, destination location
Re: Drag and Drop to Finder, destination location
- Subject: Re: Drag and Drop to Finder, destination location
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 11 Aug 2011 13:29:53 -0600
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 (email@hidden)
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:
This email sent to email@hidden