Why aren't NSFilePromiseProviderDelegate methods being called?
Why aren't NSFilePromiseProviderDelegate methods being called?
- Subject: Why aren't NSFilePromiseProviderDelegate methods being called?
- From: Charles Srstka <email@hidden>
- Date: Mon, 05 Dec 2016 15:42:20 -0600
Okay, so I decided to try to experiment with NSFilePromiseProvider, in order to replace some legacy code using old-fashioned drag-and-drop methods. Seems simple enough; just have the outline view delegate’s -outlineView:pasteboardWriterForItem: method return an NSFilePromiseProvider. However, for some reason, when I drag something from the outline view to the Finder, the drag-and-drop system seems to completely ignore my NSFilePromiseProviderDelegate methods, and calls the old-fashioned -outlineView:namesOfPromisedFilesDroppedAtDestination:forDraggedItems: method instead. If it's not there, it throws an exception. What the heck?
Project is at: http://www.charlessoft.com/FilePromisesTest.zip
I mean, it works, but it works using the older system. I want it to use the modern system. Why won’t it?
Charles
_______________________________________________
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