It seems to me that you want to also use NSTIFFPboardType/ NSPDFPboardType with the image data. Mail/iPhoto like to deal with files (for attachments/library items), but TextEdit wants a raw image (IIRC).

-W

On May 30, 2009, at 4:21 AM, Srinivasa Prabhu wrote:

Hi all,

I am trying to drag image files from my application to other applications like Mail,iPhoto,TextEdit etc. I am using NSFilesPromisePboardType to do this.

This is the code snippet:

[inPasteboard declareTypes : [NSArray arrayWithObjects:NSFilesPromisePboardType, nil] owner:self]; [inPasteboard setPropertyList:fileTypes forType:NSFilesPromisePboardType];

I implemented the following method in my dragSource(IkBrowserview)

- (NSArray *)namesOfPromisedFilesDroppedAtDestination:(NSURL *) dropDestination
{
        // here I am creating actual image file
}

This works fine for applications like Mail,iPhoto.
But , when I try to drag files to applications like TextEdit,Thunderbird this method never gets called.

Does this mean that applications like TextEdit and Thunderbird do not support
NSFilesPromisePboadType ?
If yes, Is there any workaround for this issue?

Regards,
Srinivas.

_______________________________________________

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