To refresh the data displayed in a NSTableView
object in AppKit, you need to call the reloadData()
method.
Assuming your NSTableView
object is assigned to a variable called tableView
, the following code will refresh the data:
main.swift23 chars2 lines
You can call this method in response to various events, such as a button click or a timer completion.
gistlibby LogSnag