• 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: How to detect a paste request for file copy/paste?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to detect a paste request for file copy/paste?


  • Subject: Re: How to detect a paste request for file copy/paste?
  • From: Conor <email@hidden>
  • Date: Wed, 10 Dec 2008 10:42:24 +0100

You still need to give the pasteboard an array of the file type for NSFilesPromisePboardType. Your missing the line:

[pboard setPropertyList:[NSArray arrayWithObjects:@"txt", nil] forType:NSFilesPromisePboardType];

But I would recommend initiating the promised drag with the NSView's method:

- (BOOL)dragPromisedFilesOfTypes:(NSArray *)typeArray fromRect: (NSRect)aRect source:(id)sourceObjectslideBack:(BOOL)slideBack event: (NSEvent *)theEvent;

file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Conceptual/DragandDrop/Tasks/DraggingFiles.html

Conor
http://www.bruji.com/
_______________________________________________

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: How to detect a paste request for file copy/paste?
      • From: Ling Li <email@hidden>
  • Prev by Date: Re: How to launch window of the application on clicking of dock icon?
  • Next by Date: Re: The thread that starts by NSTask didn't clear up
  • Previous by thread: How to detect a paste request for file copy/paste?
  • Next by thread: RE: How to detect a paste request for file copy/paste?
  • Index(es):
    • Date
    • Thread