I have a NSOutlineView
with drag and drop support to reorder rows. Now I would like to add an export of the selected rows to a opml file in Finder. I've managed to set up NSFilePromiseProvider
during outlineView:pasteboardWriterForItem:
, which is called for every single row.
My current testing environment includes dummy methods of all related drag-n-drop delegate methods:
NSDraggingSource
, NSFilePromiseProviderDelegate
, NSPasteboardItemDataProvider
, NSPasteboardTypeOwner
, NSPasteboardWriting
, and the source and destination delegate methods of NSOutlineViewDataSource
.
With a minimal method body and a print out whenever they are called.
And most of the time delegate methods are only called for specific NSPasteboardType
like NSPasteboardTypeString
.
How can I have one promised file for all selected rows at once? In the end I want to drag e.g., 3 rows from my outline view to the Desktop with 1 file created 'export.opml'.