• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSFilesPromisePboardType
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFilesPromisePboardType


  • Subject: Re: NSFilesPromisePboardType
  • From: Nick Paulson <email@hidden>
  • Date: Fri, 8 Jan 2010 23:37:05 -0500

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.

--Nick
On Jan 8, 2010, at 11:33 PM, Jim Correia wrote:

> 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

_______________________________________________

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

References: 
 >NSFilesPromisePboardType (From: Nick Paulson <email@hidden>)
 >Re: NSFilesPromisePboardType (From: Jim Correia <email@hidden>)
 >Re: NSFilesPromisePboardType (From: Nick Paulson <email@hidden>)
 >Re: NSFilesPromisePboardType (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: NSFilesPromisePboardType
  • Next by Date: Re: NSFilesPromisePboardType
  • Previous by thread: Re: NSFilesPromisePboardType
  • Next by thread: Re: NSFilesPromisePboardType
  • Index(es):
    • Date
    • Thread