Pasteboard file promises under 10.6
Pasteboard file promises under 10.6
- Subject: Pasteboard file promises under 10.6
- From: Frank Illenberger <email@hidden>
- Date: Mon, 04 Jan 2010 19:06:43 +0100
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@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