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

Drag and drop query


  • Subject: Drag and drop query
  • From: Srinivasa Prabhu <email@hidden>
  • Date: Sat, 30 May 2009 14:51:33 +0530
  • "x-copyrighted-material: http://www.robosoftin.com"

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.


----------------------------------------------- Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
_______________________________________________

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


  • Follow-Ups:
    • Re: Drag and drop query
      • From: Nate Weaver <email@hidden>
  • Prev by Date: Positioning of autocomplete popups
  • Next by Date: Re: microsoft file formats in cocoa
  • Previous by thread: Re: Positioning of autocomplete popups
  • Next by thread: Re: Drag and drop query
  • Index(es):
    • Date
    • Thread