• 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 onto the desktop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag and drop onto the desktop?


  • Subject: Re: Drag and drop onto the desktop?
  • From: Charles Srstka <email@hidden>
  • Date: Thu, 6 Dec 2001 18:39:20 -0600

I used to do that, sending promiseHFSFlavor directly to the Finder from my Cocoa app. It was so buggy and unstable, though, that I eventually took it out.

On Thursday, December 6, 2001, at 12:59 PM, jgrosjean wrote:

Can i just say that i provide the promiseHFSFlavor type when i start the drag operation and then will things work? Where would i go to find out how to do this? Are there any examples of declaring Carbon drag types on a Cocoa pastboard and what would i have to do to my NSData to make it compatible with the promiseHFSFlavor type?

Oh one last thing... I think with Omniweb you can drag URL's to the finder. Anyone know how they doing that?

Thanks,
Jesse


---------- Original Message ----------------------------------
From: Brian Webster <email@hidden>
Date: Thu, 6 Dec 2001 11:07:42 -0600

Your code is correct. The problem is that Apple does not yet
support the translation of NSFileContentsPboardType to the
Carbon equivalent promiseHFSFlavor in inter-Carbon-Cocoa drag
and drop. So as of now, it's impossible to create new files in
the Finder from Cocoa drags.

P.S. They might be more inclined to fix this if it should
happen to show up in a lot of bug reports somehow.
*cough*bugreport.apple.com*cough* :-)

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Prev by Date: Re: The sick power!
  • Next by Date: Re: Global keyboard events
  • Previous by thread: Re: Drag and drop onto the desktop?
  • Next by thread: Re: Drag and drop onto the desktop?
  • Index(es):
    • Date
    • Thread