• 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: Drop location on the Finder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drop location on the Finder?


  • Subject: Re: Drop location on the Finder?
  • From: Brian Webster <email@hidden>
  • Date: Mon, 22 Oct 2001 12:50:00 -0500

On Monday, October 22, 2001, at 10:28 AM, cocoa-dev-
email@hidden wrote:

Anyone knows how to get the drop location of drags to the Finder?
Something like promiseHFS in Carbon?

Well, there is a mechanism in Cocoa to do this. You do it by writing data of type NSFileContentsPboardType to the dragging pasteboard. But, in order for drag and drop to work between Carbon and Cocoa apps, a translation needs to occur for the two types of apps to be able to communicate. There is support for a handful of types, but the NSFileContentsPboardType <-> promiseHFSFlavor translation is not present, so there's really no way to create new files in the Finder from a Cocoa app (well, no way that isn't an ugly hack). This is Apple's problem to take care of, so feel free to inundate cocoa-
email@hidden with requests for this functionality in upcoming releases.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster


  • Follow-Ups:
    • Re: Drop location on the Finder?
      • From: Charles Srstka <email@hidden>
  • Prev by Date: Re: Incremental Builds in PB 10.1
  • Next by Date: Re: Vectorising text
  • Previous by thread: Re: Drop location on the Finder?
  • Next by thread: Re: Drop location on the Finder?
  • Index(es):
    • Date
    • Thread