Inheritance: MonoMac.Foundation.NSObject
示例#1
0
		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);
		}
示例#2
0
 public MacClipboardBackend()
 {
     owner = new PasteboardOwner ();
 }
示例#3
0
 public MacClipboardBackend()
 {
     owner = new PasteboardOwner();
 }