Skip to content

No (understandable) migration documentation for NSTableView binding #693

@timothyarmes

Description

@timothyarmes

I'm trying to migrate to the latest version, but I can't figure out how to do the equivalent of this code:

        documentController.myarray.bind(to: tableView, animated: true) { items, index, tableView in
            let observableItem = items[index]
            
            let view = RecentTableCellView()
            view.url = observableItem.url
            
            observableItem.openStatus.observeNext { openStatus in
                view.infoIconView.openState = openStatus
            }.dispose(in: view.bag)
           
            return view
        }

I've been though the migration guide, but I still can't figure it out. I can no longer pass in a closure, but I can's understand how else to do it.

It would be great if the migration guide could offer more help in this respect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions