• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drag and Drop to Finder, destination location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Drag and Drop to Finder, destination location (From: Chris Paveglio <email@hidden>)

  • Prev by Date: Re: Drawing Chinese text to PDF
  • Next by Date: migration to 10.6 SDK, loadNib problems
  • Previous by thread: Drag and Drop to Finder, destination location
  • Next by thread: Re: Drag and Drop to Finder, destination location
  • Index(es):
    • Date
    • Thread