I’d like to use the pasteboard to copy files between apps and to Finder.
What I have so far is:
For Each file As FolderItem In files Dim pbItem As New NSPasteboardItemMBS Dim url As String = file.URLPath Dim name As String = file.Name pbItem.stringForType(NSPasteboardMBS.NSURLPboardType) = url.ConvertEncoding(Encodings.UTF8) pbItem.stringForType(NSPasteboardMBS.NSPasteboardTypeString) = name.ConvertEncoding(Encodings.UTF8) pbItems.Append pbItem Next file Dim b As Boolean = pb.SetPasteboardItems(pbItems) If b = False Then Beep
But this is giving resulting in b = false on the penultimate line.
What am I missing?