public virtual void WriteToPasteboard(NSPasteboard pasteBoard) { //NSData colorData = [NSArchiver archivedDataWithRootObject: self]; //if (colorData != null) // [pasteBoard setData: colorData forType: NSColorPboardType]; }