Re: Drop location on the Finder?
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