public override void SetData (TransferDataType type, Func<object> dataSource, bool cleanClipboardFirst = true) { var pboard = NSPasteboard.GeneralPasteboard; if(cleanClipboardFirst) { pboard.ClearContents(); } var owner = new PasteboardOwner(); owner.DataSource = dataSource; pboard.AddTypes (new[] { type.ToUTI () }, owner); }
public MacClipboardBackend() { owner = new PasteboardOwner (); }
public MacClipboardBackend() { owner = new PasteboardOwner(); }