Example #1
0
        public override bool WriteRows(NSTableView tableView, NSIndexSet rowIndexes, NSPasteboard pboard)
        {
            pboard.DeclareTypes(new string[] { NSPasteboard.NSFilesPromiseType }, this);
            NSArray a = NSArray.FromStrings(new string[] { "" });

            pboard.SetPropertyListForType(a, NSPasteboard.NSFilesPromiseType);

            return(true);
        }
Example #2
0
        public override bool OutlineViewwriteItemstoPasteboard(NSOutlineView outlineView, NSArray items, NSPasteboard pboard)
        {
            if (outlineView.SelectedRow < 0 || outlineView.SelectedRowCount <= 0)
            {
                return(false);
            }

            pboard.DeclareTypes(new string[] { NSPasteboard.NSFilesPromiseType }, this);
            pboard.SetPropertyListForType(NSArray.FromStrings(new string[] { "" }), NSPasteboard.NSFilesPromiseType);

            return(true);
        }
 public override void Apply(NSPasteboard pasteboard, string type) => pasteboard.SetPropertyListForType(Value, type);