Re: Accepting files dragged from iTunes in a Cocoa app

2008-09-11 Thread Stefan Haller
Excellent! Thanks a lot, this works well for me too. I didn't know about the "CorePasteboardFlavorType" mechanism, and I couldn't find any documentation about it, so I suppose this isn't guaranteed to work in the future. Best, Stefan Stephen F. Booth <[EMAIL PROTECTED]> wrote: > Stefan, >

Re: Accepting files dragged from iTunes in a Cocoa app

2008-09-10 Thread Stephen F. Booth
Stefan, I use the following code to get the URLs from dragged files from iTunes: NSString * const iTunesPboardType = @"CorePasteboardFlavorType 0x6974756E"; // Handle iTunes drops else if([bestType isEqualToString:iTunesPboardType]) { NSDictionary *iTunesDictionary = [[info draggingPasteboard]

Re: Accepting files dragged from iTunes in a Cocoa app

2008-09-10 Thread Stephen F. Booth
Stefan, I use the following code to get the URLs from dragged files from iTunes: NSString * const iTunesPboardType = @"CorePasteboardFlavorType 0x6974756E"; // Handle iTunes drops else if([bestType isEqualToString:iTunesPboardType]) { NSDictionary *iTunesDictionary = [[info draggingPasteboard]

Re: Accepting files dragged from iTunes in a Cocoa app

2008-09-10 Thread Stefan Haller
Gregory Weston <[EMAIL PROTECTED]> wrote: > Stefan Haller wrote: > > > 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 relat

Re: Accepting files dragged from iTunes in a Cocoa app

2008-09-10 Thread Gregory Weston
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 priv