refresh a table view in appkit in swift

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.swift
tableView.reloadData()
23 chars
2 lines

You can call this method in response to various events, such as a button click or a timer completion.

gistlibby LogSnag