I ended up just using a define to easily change it later:

#define kiTunesPboardType @"CorePasteboardFlavorType 0x6974756E"

To anyone interested, it is a property list that contains a lot of information 
about iTunes itself and the tracks being dragged.

Thanks for the help, Jim,

--Nick

On Jan 9, 2010, at 12:08 AM, Jim Correia wrote:

> On Jan 8, 2010, at 11:33 PM, Jim Correia wrote:
> 
>> Ultimately, it appears that iTunes is putting bad promise data in the drag. 
>> At this point it is probably best to file a bug against iTunes.
> 
> Looks like this might simply be a byte order bug with the value in the 
> promisedFlavor field in the PromiseHFSFlavor data on the pasteboard (though 
> that doesn’t really help when accessing the data via NSPasteboard.)
> 
> On Jan 8, 2010, at 11:37 PM, Nick Paulson wrote:
> 
>> I am trying to get the path of an item dropped onto a view by iTunes.
>> 
>> iTunes seems to only do this with NSFilesPromisePboardType.  Maybe I am 
>> wrong, though.
> 
> The promised data isn’t really what you wanted anyway. The idea behind the 
> promise is that the drag provider *promises* to create a new file in location 
> specified in the drag receiver. It sounds like you are interested in the file 
> that is being dragged, not a copy of it.
> 
> iTunes does provide all the data in the drag that you need (and more), but 
> does so through the ‘itun’ drag flavor. I haven’t seen this documented 
> anywhere as a public, supported pasteboard flavor. It has been available for 
> some time, but unless it is documented as a such, it could disappear (or 
> change) at any time. Proceed accordingly.
> 
> - Jim_______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/cocoa%40nickpaulson.com
> 
> This email sent to co...@nickpaulson.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to