• 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: Accepting files dragged from iTunes in a Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accepting files dragged from iTunes in a Cocoa app


  • Subject: Re: Accepting files dragged from iTunes in a Cocoa app
  • From: Gregory Weston <email@hidden>
  • Date: Wed, 10 Sep 2008 11:19:56 -0400

Stefan Haller wrote:

When dragging files from iTunes, iTunes sends the following drag flavors
(according to DragPeeker X):


  phfs (kDragFlavorTypePromiseHFS)
  rWm1 (kDragPromisedFlavorFindFile)
  Hpfl
  itun

I can't find any reference to the last two on the web, so I assume they
are private flavors.


In a Carbon application I solved the problem by handling the
kDragPromisedFlavorFindFile flavor, which worked quite well.  How do I
do this in a Cocoa app though?  I can't find any NS*PboardType that
seems to relate to it.

Accepting the file promise is not what I want; I don't want to create a
new file, but reference the existing file in the iTunes library.


Any ideas?

I think you want to have a look at Tech Note 1085 <http:// developer.apple.com/technotes/tn/tn1085.html>. It looks like iTunes is mimics the behavior of Find File described in there. Which kinda- sorta makes sense. Find File and that tech note established and then documented a mechanism by which query results can be dragged, and iTunes' file manipulation does kind of fall under the umbrella of (updateable) queries rather than being a first class file system in its own right.
_______________________________________________


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


  • Follow-Ups:
    • Re: Accepting files dragged from iTunes in a Cocoa app
      • From: email@hidden (Stefan Haller)
  • Prev by Date: HTTP chunked transfer encoding implementation
  • Next by Date: menu with checkbox
  • Previous by thread: Accepting files dragged from iTunes in a Cocoa app
  • Next by thread: Re: Accepting files dragged from iTunes in a Cocoa app
  • Index(es):
    • Date
    • Thread