An update to this issue ...
The application required the Struct values to be reset to Zero (0) before requesting new search values, which the application calls with a function. The application remembered the previous numbers to find during the first pass in the tableView, causing the first few tableView numbers to be erroneous, which became identified as [EQUAL] to the common number. The tableView performed well after the application reset the Struct values to Zero (0) prior to an incremental search.
The application started to misbehave again after the last Xcode update, because Xcode is brighter than I am, where the tableView would show the tableView's [COMMON VALUES] properly upon the initial tableView display, that is until the application scrolled the tableView to see the incremental [COMMON VALUES]. The tableView remembered the last font and colour change to the [COMMON VALUE] textCell.textField, causing every subsequent tableView textCell.textField to change colour, and size too. The issue became clear the application required attention to the tableView values [NOT EQUAL] to the [COMMON NUMBERS] to remain unchanged.
The application tests whether each cellView.textField is [GREATER THAN] or [LESS THAN] the [COMMON NUMBER]. Therefore, I made sure, I set the [UNCOMMON] textView cells to the original font colour, and size to prevent the unwanted change within each conditional test with the following code:
`/// Keep the cellView.textField [AS THE ORIGINAL (IB) VALUES] when each [GREATER THAN] or [LESS THAN] conditional is met:
cellView.textField?.textColor = NSColor.white
/// Keep the cell font size at [11].
let fontSize = 11
cellView.textField?.font = NSFont.systemFont(ofSize: CGFloat(fontSize))
// Compared to the changed cellView.textField:
// Change the [TEXT FIELD COLOUR TO YELLOW] when the [cellView.textField IS EQUAL TO THE COMMON NUMBER] condition is met:
cellView.textField?.textColor = NSColor.systemYellow
// Change the (TEXTFIELD FONT SIZE) with CGFloat.
let fontSize = 12
cellView.textField?.font = NSFont.boldSystemFont(ofSize: CGFloat(fontSize))`
The tableView behaves as expected now.
Respectfully,
jim_k