• 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: Drag and drop images to other application using NSFilesPromisePboardType
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag and drop images to other application using NSFilesPromisePboardType


  • Subject: Re: Drag and drop images to other application using NSFilesPromisePboardType
  • From: Corbin Dunn <email@hidden>
  • Date: Wed, 04 Feb 2009 09:32:30 -0800


On Feb 4, 2009, at 5:24 AM, Dikshith Rai wrote:

Hi All,

I am trying to drag files from my application to iPhoto,Mail,Preview etc (any application that accepts image files).

I am using NSFilesPromisePboadType.The reason for using NSFilesPromisePboadType is application data is stored as a package and I need to extract image from the package when I drag and drop. It works well when I drag images from my app to the Finder.

I get this call back when there is a mouseUp

- (NSArray *)namesOfPromisedFilesDroppedAtDestination:(NSURL *) dropDestination


But Incase of applications like iPhoto,Mail,Preview etc, this method is not being called.
Does this mean that application like iPhoto does not support NSFilesPromisePboadType or am I not doing it in the right way?

What else are you sticking (or declaring) on the pasteboard? They may be preferring another type. Please post your code that fills it up and declares it.


corbin


_______________________________________________

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: 
 >Drag and drop images to other application using NSFilesPromisePboardType (From: Dikshith Rai <email@hidden>)

  • Prev by Date: Re: why popupbuttoncell always select second item in tableview ?
  • Next by Date: Re: Stroking a CATextLayer
  • Previous by thread: Drag and drop images to other application using NSFilesPromisePboardType
  • Next by thread: Re: Drag and drop images to other application using NSFilesPromisePboardType
  • Index(es):
    • Date
    • Thread