Re: NSFilesPromisePboardType
Re: NSFilesPromisePboardType
- Subject: Re: NSFilesPromisePboardType
- From: Jim Correia <email@hidden>
- Date: Fri, 8 Jan 2010 23:33:10 -0500
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 (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