• 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 query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Drag and drop query (From: Srinivasa Prabhu <email@hidden>)

  • Prev by Date: Re: Get Users/Shared full path and its localized dir name
  • Next by Date: Showing more warnings possible in Xcode?
  • Previous by thread: Drag and drop query
  • Next by thread: Debugging Information
  • Index(es):
    • Date
    • Thread