Added MasterTableViewCellDelegate.

This commit is contained in:
Maurice Parker
2019-04-17 10:34:10 -05:00
parent bb20e4d2a2
commit c9beee89ab
3 changed files with 21 additions and 2 deletions

View File

@@ -287,6 +287,7 @@ class MasterViewController: UITableViewController, UndoableCommandRunner {
// MARK: API
func configure(_ cell: MasterTableViewCell, _ node: Node) {
cell.delegate = self
cell.name = nameFor(node)
configureUnreadCount(cell, node)
configureFavicon(cell, node)
@@ -391,6 +392,16 @@ extension MasterViewController: UIDocumentPickerDelegate {
}
// MARK: MasterTableViewCellDelegate
extension MasterViewController: MasterTableViewCellDelegate {
func disclosureSelected(_ sender: MasterTableViewCell, expanding: Bool) {
// let indexSet = tableView.indexPath(for: sender)
}
}
// MARK: Private
private extension MasterViewController {