For one line I choose the color, everything works. If I create the second line and set a different color, the first one changes its color and both of the same color. How to make the colors different? 
Color pickup function
@IBAction func backgroundColor(_ sender: AnyObject) { if let well = sender as? NSColorWell { let color = well.color MQTTSubscribeVC.preferenceTableColor = color TableBgColorChangedNotification), object: self) } } Display
func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? { cell.messageLabel.backgroundColor = color.preferenceTableColor