Re: Drag and drop query
Re: Drag and drop query
- Subject: Re: Drag and drop query
- From: Nate Weaver <email@hidden>
- Date: Fri, 29 May 2009 22:02:36 -0500
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 (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