Skip to content

Instantly share code, notes, and snippets.

@Mx-Iris
Last active June 9, 2024 07:04
Show Gist options
  • Save Mx-Iris/10f7a964f6f61421b38b4d29e5298e21 to your computer and use it in GitHub Desktop.
Save Mx-Iris/10f7a964f6f61421b38b4d29e5298e21 to your computer and use it in GitHub Desktop.
I found this a few method through reverse engineering, in the case of don't need to implement the delegate method to NSTableView provide the data. I'm guessing this is probably reserved for the NSTableViewDiffableDataSource
@objc
protocol NSTableViewDataSourceInternal: NSTableViewDataSource {
@objc(_tableView:viewForTableColumn:row:)
func _tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView?
@objc(_tableView:rowViewForRow:)
func _tableView(_ tableView: NSTableView, rowViewForRow row: Int) -> NSTableRowView?
@objc(_tableView:isGroupRow:)
func _tableView(_ tableView: NSTableView, isGroupRow row: Int) -> Bool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment