Home > front end >  NSTextField selectable is not working. Does anyone know what's going on?
NSTextField selectable is not working. Does anyone know what's going on?

Time:08-06

I place two labels in table view cell. I want label enable select feature. And set the Behavior property is Selectable, but not working. Does anyone know what's going on?

CodePudding user response:

I solved.

  1. remove the tableView(_:shouldSelectRow:) func.
  2. Disable the table view's selection style by tableView.selectionHighlightStyle = .none.

CodePudding user response:

I have not tried Selectable so I am not sure of how it works. However, I think what you're trying to do is what Picker View does. An UIPickerView lets you select one text element among several others.

  • Related