On Jan 8, 2010, at 10:24 PM, Nick Paulson wrote:

> I am doing the following code:
> 
> NSArray *filenames = [sender namesOfPromisedFilesDroppedAtDestination:[NSURL 
> fileURLWithPath:@"/"]];
> 
> However, it is getting the following lines in console:
> Couldn't get a copy of an HFS Promise from the pasteboard
> Looked for HFSPromises on the pasteboard, but found none.
> 
> I am dragging from iTunes in list view to my own view.
> 
> Am I making a mistake somewhere?

A couple of things to keep in mind here…

* See the comment in the documentation about having to assume the files haven’t 
been created yet? You have to assume that, and it can complicate things. (I’ve 
logged a lengthy bug requesting ways to simplify file promise dragging, but the 
problem is complex because it requires system framework support *and* the 
cooperation of applications doing the dragging.)

* You specified the drop location as /. Not all users have write permissions to 
the root of the disk, and it is unlikely that you really wanted iTunes to 
create the files here anyway.

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.

What is it you are actually trying to accomplish? Perhaps there is another 
solution.

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/archive%40mail-archive.com

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

Reply via email to