Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag From iTunes in NSView just like iWeb did



On Sep 29, 2006, at 12:31 AM, Nishant Yede wrote:

hi
Thanks for your comments and i tried all your suggestions and now i am able to drag all kind of files from
finder but not from "iTune" and from "mediaBrowser" which i really want.


I am egarly waiting for your reply.

Take a look at what the dragging pasteboard contains when you drag from iTunes (this thanks to PasteboardPeeker, http://developer.apple.com/samplecode/PasteboardPeeker/) :


PasteboardRef: 3532864  ItemCount: 1
   Index: 1  item ID: 1
      "dyn.agk81a4dgsq"
      ""
      'phfs' ______ 14      hook  rWm1

      "dyn.agk81ez5rge"
      ""
      'rWm1' P_____ 70         Filename.m4p

      "dyn.agk8yu6dgru"
      ""
      'Hpfl' ___n__ 70         Filename.m4p

"dyn.agk80w7dzr2"
""
'itun' P__n__ 1804 <?xml version= 1.0 encoding= UTF-8 ?> < DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd > <plist version= 1.0 > (...)</plist>


Not a single Cocoa type anywhere in sight. Which kinda makes sense if you think about it, considering iTunes isn't a Cocoa app. You're going to need to drop down to the CF APIs.

-> jp

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Drag From iTunes in NSView just like iWeb did (From: "Nishant Yede" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.