import Cocoa

class FruitPasteboardWriter: NSObject, NSPasteboardWriting {
    var fruit: String
    var index: Int
    
    init(fruit: String, at index: Int) {
        self.fruit = fruit
        self.index = index
    }
    
    func writableTypes(for pasteboard: NSPasteboard) -> [NSPasteboard.PasteboardType] {
        return [.string, .tableViewIndex]
    }