Does anybody know how to get file promises working with the new pasteboard API 
in Snow Leopard?
When the dragging session in started, I put the following item onto the 
provided pasteboard:

    NSPasteboardItem* item = [[NSPasteboardItem alloc] init];
    [item setDataProvider:self forTypes:[NSArray 
arrayWithObject:(NSString*)kPasteboardTypeFileURLPromise]];
    [item setString:@"net.mycompany.mydocument" 
forType:kPasteboardTypeFilePromiseContent];
    [pboard writeObjects:[NSArray arrayWithObject:item]];

But when I drag my objects, the delegate method 
pasteboard:item:provideDataForType: is never called. 
If I use "public.data" instead of my custom UTI, I get the following output in 
the console:

"Looked for HFSPromises on the pasteboard, but found none"

Sadly, the system documentation does not provide any more clues.

Cheers

Frank






_______________________________________________

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