Re: How to detect a paste request for file copy/paste?
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