Skip to content

Instantly share code, notes, and snippets.

View Mx-Iris's full-sized avatar

Mx-Iris

View GitHub Profile
@Mx-Iris
Mx-Iris / NSTableViewDataSourceInternal.swift
Last active June 9, 2024 07:04
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
}