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