public void PasteboardProvideDataForType(NSPasteboard sender, NSString type) { // Sender has accepted the drag and now we need to send the data for the type we promised if (type.Compare(NSPasteboard.NSTIFFPboardType) == NSComparisonResult.NSOrderedSame) { sender.SetDataForType(this.Image.TIFFRepresentation, NSPasteboard.NSTIFFPboardType); } else if (type.Compare(NSPasteboard.NSPDFPboardType) == NSComparisonResult.NSOrderedSame) { sender.SetDataForType(this.DataWithPDFInsideRect(this.Bounds), NSPasteboard.NSPDFPboardType); } }
public NSComparisonResult PanelCompareFilenameWithCaseSensitive(Id sender, NSString name1, NSString name2, bool caseSensitive) { return name1.Compare(name2); }