How to enable copy paste in my NStableviewcell in my cocoa application programatically

41 Views Asked by At

Below is my code for my NSTableview cell

class MyTableCellView: NSTableCellView {
    
    var aTextField: NSTextField?

    override init(frame frameRect: NSRect) {
        super.init(frame: frameRect)
        aTextField = NSTextField(frame: frameRect)
        aTextField?.drawsBackground = false
        aTextField?.isBordered = false
        self.addSubview(aTextField!)
    }
   
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}

How can I enable copy and paste to this cell programatically?

0

There are 0 best solutions below