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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to